| ... | @@ -71,6 +71,12 @@ static clock_serv_t cclock; | ... | @@ -71,6 +71,12 @@ static clock_serv_t cclock; |
| 71 | #include <errno.h> | 71 | #include <errno.h> |
| 72 | #include <time.h> | 72 | #include <time.h> |
| 73 | | 73 | |
| | 74 | // Apple doesn't provide the environ global variable |
| | 75 | #if defined(__APPLE__) && !defined(environ) |
| | 76 | #include <crt_externs.h> |
| | 77 | #define environ (*_NSGetEnviron()) |
| | 78 | #endif |
| | 79 | |
| 74 | #if defined(ZIG_OS_POSIX) | 80 | #if defined(ZIG_OS_POSIX) |
| 75 | static void populate_termination(Termination *term, int status) { | 81 | static void populate_termination(Termination *term, int status) { |
| 76 | if (WIFEXITED(status)) { | 82 | if (WIFEXITED(status)) { |