diff options
author | Taylor Yu <catalyst@torproject.org> | 2018-06-28 17:15:53 -0500 |
---|---|---|
committer | Taylor Yu <catalyst@torproject.org> | 2018-06-28 17:15:53 -0500 |
commit | f9e22c68a0c701745867a9dac391a70171654c75 (patch) | |
tree | 8102ee6d795d702563bc9c4e25e05840f7d26cf7 /src/lib/process/env.c | |
parent | be40ad51b68fa87bafb88e55db7856d373274a4d (diff) | |
download | tor-f9e22c68a0c701745867a9dac391a70171654c75.tar.gz tor-f9e22c68a0c701745867a9dac391a70171654c75.zip |
Fix macOS includes
Recent code movement from refactoring missed some includes that seem
to be necessary on macOS.
Diffstat (limited to 'src/lib/process/env.c')
-rw-r--r-- | src/lib/process/env.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/process/env.c b/src/lib/process/env.c index 95e1e515d4..731f609ac1 100644 --- a/src/lib/process/env.c +++ b/src/lib/process/env.c @@ -18,6 +18,10 @@ #endif #include <stdlib.h> #include <string.h> +#ifdef HAVE_CRT_EXTERNS_H +/* For _NSGetEnviron on macOS */ +#include <crt_externs.h> +#endif #ifndef HAVE__NSGETENVIRON #ifndef HAVE_EXTERN_ENVIRON_DECLARED |