This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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.
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.
Attachment:
temp.diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |