This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
environ and -D_GNU_SOURCE
- To: glibc-linux at ricardo dot ecn dot wfu dot edu
- Subject: environ and -D_GNU_SOURCE
- From: Wolfgang Sourdeau <wolfgang at ultim dot net>
- Date: Wed, 17 May 2000 11:48:18 -0400
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
Hi,
I need to access (char**) environ from one of my programs. But looking
at unistd.h, I noticed I had to define _GNU_SOURCE at compile time to
be able to reach it, although __environ would else be available.
I don't understand why, since this variable is not specific to GNU.
Wolfgang