portability: include environ in overlaid unistd.h
parent
e6b1b29028
commit
837d2fd915
|
@ -3,3 +3,8 @@
|
||||||
#ifdef NEED_PIPE2
|
#ifdef NEED_PIPE2
|
||||||
int pipe2(int pipefd[2], int flags);
|
int pipe2(int pipefd[2], int flags);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
# include <crt_externs.h>
|
||||||
|
# define environ (*_NSGetEnviron())
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue