[PATCH] Fix environ.c on darwin
Andrew Pinski
pinskia@physics.uc.edu
Wed Oct 27 15:22:00 GMT 2004
This is basically the patch from the PR for this (PR 17748) with
an additional comment which says why this is needed.
The problem is that even though darwin has a man page for environ,
it does not really have the variable but does have a function,
_NSGetEnviron, which does the same thing as the variable.
OK? Built and tested on powerpc-darwin.
Thanks,
Andrew Pinski
libgfortran/ChangeLog:
DATE Peter O'Gorman <peter@pogma.com>
Andrew Pinski <pinskia@physics.uc.edu>
* configure.ac: Add check for the crt_externs.h header.
* configure: Regenerate.
* config.h.in: Regenerate.
* runtime/environ.c: If we have HAVE_CRT_EXTERNS_H, then define
environ as calling _NSGetEnviron, otherwise define it as an external
variable.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: temp.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20041027/5df8930a/attachment.txt>
More information about the Gcc-patches
mailing list