aboutsummaryrefslogtreecommitdiff
path: root/src/lib/process/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/process/env.c')
-rw-r--r--src/lib/process/env.c4
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