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