This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Define _GNU_SOURCE in unwind-dw2-fde-glibc.c
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: dave at hiauly1 dot hia dot nrc dot ca (John David Anglin)
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 4 Feb 2002 15:46:01 -0500 (EST)
- Subject: Re: Define _GNU_SOURCE in unwind-dw2-fde-glibc.c
> I had a problem building unwind-dw2-fde-glibc.c under hppa-linux. The
> header <link.h> needs _USE_GNU defined to define:
Argh!
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
* unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
--- unwind-dw2-fde-glibc.c.orig Thu Jan 10 18:11:48 2002
+++ unwind-dw2-fde-glibc.c Thu Jan 24 15:10:08 2002
@@ -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"
#include <stddef.h>