summaryrefslogtreecommitdiff
path: root/libc-symbols.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc-symbols.h')
-rw-r--r--libc-symbols.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc-symbols.h b/libc-symbols.h
index f7231f9c7c..7405e67086 100644
--- a/libc-symbols.h
+++ b/libc-symbols.h
@@ -46,6 +46,9 @@ Cambridge, MA 02139, USA. */
itself is being compiled, or just some generator program. */
#define _LIBC 1
+/* Enable declarations of GNU extensions, since we are compiling them. */
+#define _GNU_SOURCE 1
+
#include <config.h>
/* This disables sccsid/rcsid strings in lots of code of non-GNU origin. */