aboutsummaryrefslogtreecommitdiff
path: root/ld/config.in
diff options
context:
space:
mode:
Diffstat (limited to 'ld/config.in')
-rw-r--r--ld/config.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/config.in b/ld/config.in
index bb4f5fa..5fbc4a3 100644
--- a/ld/config.in
+++ b/ld/config.in
@@ -1,5 +1,12 @@
/* config.in. Generated from configure.in by autoheader. */
+/* Check that config.h is #included before system headers
+ (this works only for glibc, but that should be enough). */
+#if defined(__GLIBC__) && !defined(__CONFIG_H__)
+# error config.h must be #included before system headers
+#endif
+#define __CONFIG_H__ 1
+
/* Define to 1 if translation of program messages to the user's native
language is requested. */
#undef ENABLE_NLS