From: glenlow Date: Wed, 16 Jul 2008 05:48:07 +0000 (+0000) Subject: NSGetEnviron is defined within crt_externs.h but HAVE__NSGETENVIRON is not properly... X-Git-Tag: LAST_LIBGRAPH~32^2~3854 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d195a067987456db8a3c8d871bec88ca69bc565e;p=graphviz NSGetEnviron is defined within crt_externs.h but HAVE__NSGETENVIRON is not properly cleared in some build scenarios --- diff --git a/lib/ast/pathpath.c b/lib/ast/pathpath.c index 856115ce2..77a90d703 100644 --- a/lib/ast/pathpath.c +++ b/lib/ast/pathpath.c @@ -44,7 +44,7 @@ #ifdef WIN32 #define environ _environ #else -#ifdef HAVE__NSGETENVIRON +#if defined(HAVE_CRT_EXTERNS_H) && defined(HAVE__NSGETENVIRON) #define environ (*_NSGetEnviron()) #else extern char **environ;