summaryrefslogtreecommitdiff
path: root/include/environ.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/environ.h')
-rw-r--r--include/environ.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/environ.h b/include/environ.h
index 326a27812db..32bb0b155c9 100644
--- a/include/environ.h
+++ b/include/environ.h
@@ -27,7 +27,9 @@ Boston, MA 02110-1301, USA. */
# include <crt_externs.h>
# define environ (*_NSGetEnviron ())
# else
+# ifndef environ
extern char **environ;
+# endif
# endif
# define HAVE_ENVIRON_DECL
#endif