summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/unwind-dw2-fde-glibc.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/unwind-dw2-fde-glibc.c')
-rw-r--r--contrib/gcc/unwind-dw2-fde-glibc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/gcc/unwind-dw2-fde-glibc.c b/contrib/gcc/unwind-dw2-fde-glibc.c
index 33c678f..94fe6d1 100644
--- a/contrib/gcc/unwind-dw2-fde-glibc.c
+++ b/contrib/gcc/unwind-dw2-fde-glibc.c
@@ -29,6 +29,10 @@
segment and dl_iterate_phdr to avoid register/deregister calls at
DSO load/unload. */
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE 1
+#endif
+
#include "auto-host.h" /* For HAVE_LD_EH_FRAME_HDR. */
#include "tconfig.h"
#ifndef inhibit_libc
OpenPOWER on IntegriCloud