portability: include environ in overlaid unistd.h

cute-signatures
Ariadne Conill 2021-12-29 11:15:12 -06:00 committed by Timo Teräs
parent e6b1b29028
commit 837d2fd915
1 changed files with 5 additions and 0 deletions

View File

@ -3,3 +3,8 @@
#ifdef NEED_PIPE2
int pipe2(int pipefd[2], int flags);
#endif
#ifdef __APPLE__
# include <crt_externs.h>
# define environ (*_NSGetEnviron())
#endif