aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/unistd.in.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/unistd.in.h b/lib/unistd.in.h
index bbbfd75bdd6..219f43d9310 100644
--- a/lib/unistd.in.h
+++ b/lib/unistd.in.h
@@ -401,6 +401,12 @@ _GL_WARN_ON_USE (dup3, "dup3 is unportable - "
401/* Set of environment variables and values. An array of strings of the form 401/* Set of environment variables and values. An array of strings of the form
402 "VARIABLE=VALUE", terminated with a NULL. */ 402 "VARIABLE=VALUE", terminated with a NULL. */
403# if defined __APPLE__ && defined __MACH__ 403# if defined __APPLE__ && defined __MACH__
404# include <TargetConditionals.h>
405# if !defined TARGET_OS_IPHONE && !defined TARGET_IPHONE_SIMULATOR
406# define _GL_USE_CRT_EXTERNS
407# endif
408# endif
409# ifdef _GL_USE_CRT_EXTERNS
404# include <crt_externs.h> 410# include <crt_externs.h>
405# define environ (*_NSGetEnviron ()) 411# define environ (*_NSGetEnviron ())
406# else 412# else