summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-11-29 13:39:58 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-11-29 13:40:10 +0300
commitfed4e1f677e179c67c0abbe5526cc81d4f85f3c9 (patch)
treece414231aac6fe07aceca18662cea5d7b99db8a0
parentdb8e730d44b40a4d1f4dc569c02a5aaab55cebe6 (diff)
downloadillumos-packaging-fed4e1f677e179c67c0abbe5526cc81d4f85f3c9.tar.gz
features.h: include sys/feature_tests.h unconditionally
-rw-r--r--libc/debian/compat_headers/features.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libc/debian/compat_headers/features.h b/libc/debian/compat_headers/features.h
index 2f21b21..fe29c39 100644
--- a/libc/debian/compat_headers/features.h
+++ b/libc/debian/compat_headers/features.h
@@ -84,8 +84,6 @@
# define __GNUC_PREREQ(maj, min) 0
#endif
-#include <sys/feature_tests.h>
-
#if !defined(__ASSEMBLER__) && !defined(_ASM)
# ifndef _SYS_CDEFS_H
# include <sys/cdefs.h>
@@ -94,3 +92,9 @@
#endif /* _FEATURES_H */
+/* XXX: Include unconditionally.
+ * gnulib bundled with some packages may mess with the features.h
+ * header and its guard macros, so feature_tests.h is not included,
+ * but we need it. */
+#include <sys/feature_tests.h>
+