summaryrefslogtreecommitdiff
path: root/gcc/unwind-dw2-fde-glibc.c
diff options
context:
space:
mode:
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>2002-02-04 22:21:12 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2002-02-04 22:21:12 +0000
commit703b0080a480f7a675c37b5de5418ab34a82905d (patch)
tree76a4b835659dd88835d57b3b243a2b6cdfe8cc74 /gcc/unwind-dw2-fde-glibc.c
parent6f9fdf4db2c68f482ec4ff3cadaea0537a4b13e1 (diff)
downloadgcc-703b0080a480f7a675c37b5de5418ab34a82905d.tar.gz
* unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
From-SVN: r49498
Diffstat (limited to 'gcc/unwind-dw2-fde-glibc.c')
-rw-r--r--gcc/unwind-dw2-fde-glibc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/unwind-dw2-fde-glibc.c b/gcc/unwind-dw2-fde-glibc.c
index 33c678f705f..94fe6d10078 100644
--- a/gcc/unwind-dw2-fde-glibc.c
+++ b/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