This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

environ and -D_GNU_SOURCE


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]