]> granicus.if.org Git - graphviz/commitdiff
NSGetEnviron is defined within crt_externs.h but HAVE__NSGETENVIRON is not properly...
authorglenlow <devnull@localhost>
Wed, 16 Jul 2008 05:48:07 +0000 (05:48 +0000)
committerglenlow <devnull@localhost>
Wed, 16 Jul 2008 05:48:07 +0000 (05:48 +0000)
lib/ast/pathpath.c

index 856115ce21ea50919b6760de6f90d769984b0a3e..77a90d703939c9ffbb9fab6f914f6a8a557642ba 100644 (file)
@@ -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;