about summary refs log tree commit diff
path: root/sysdeps/unix
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/bits/_G_config.h (renamed from sysdeps/unix/sysv/linux/_G_config.h)10
1 files changed, 7 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/_G_config.h b/sysdeps/unix/sysv/linux/bits/_G_config.h
index 3bc6cfd595..9994869098 100644
--- a/sysdeps/unix/sysv/linux/_G_config.h
+++ b/sysdeps/unix/sysv/linux/bits/_G_config.h
@@ -1,8 +1,12 @@
 /* This file is needed by libio to define various configuration parameters.
    These are always the same in the GNU C library.  */
 
-#ifndef _G_config_h
-#define _G_config_h 1
+#ifndef _BITS_G_CONFIG_H
+#define _BITS_G_CONFIG_H 1
+
+#if !defined _BITS_LIBIO_H && !defined _G_CONFIG_H
+# error "Never include <bits/_G_config.h> directly; use <stdio.h> instead."
+#endif
 
 /* Define types for libio in terms of the standard internal type names.  */
 
@@ -56,4 +60,4 @@ typedef union
 
 #define _G_BUFSIZ 8192
 
-#endif	/* _G_config.h */
+#endif	/* bits/_G_config.h */