077c9d
commit 4e75c2a43bb3208f32556a2b19c939cfe1f54ba6
077c9d
Author: Florian Weimer <fweimer@redhat.com>
077c9d
Date:   Wed Jun 12 10:41:19 2019 +0200
077c9d
077c9d
    <sys/cdefs.h>: Add __glibc_has_include macro
077c9d
077c9d
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
077c9d
index 3f6fe3cc8563b493..0500779d0c1b64c2 100644
077c9d
--- a/misc/sys/cdefs.h
077c9d
+++ b/misc/sys/cdefs.h
077c9d
@@ -412,6 +412,12 @@
077c9d
 # define __glibc_has_attribute(attr)	0
077c9d
 #endif
077c9d
 
077c9d
+#ifdef __has_include
077c9d
+# define __glibc_has_include(header)	__has_include (header)
077c9d
+#else
077c9d
+# define __glibc_has_include(header)	0
077c9d
+#endif
077c9d
+
077c9d
 #if (!defined _Noreturn \
077c9d
      && (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \
077c9d
      &&  !__GNUC_PREREQ (4,7))