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