| author | |
| committer | |
| log | 05e608a0c72a5da8cc92a50dd6f79bad046fb977 |
| tree | ef4b77613192686fc980f12e479239d848ecede0 |
| parent | e29a3b1d2a74732c6e6e4a1f10a02b45797fe4e2 |
| signature | Commit is signed but in an unrecognized format. |
1 files changed, 6 insertions(+), 0 deletions(-)
src/os.cpp+6| ... | ... | @@ -71,6 +71,12 @@ static clock_serv_t cclock; |
| 71 | 71 | #include <errno.h> |
| 72 | 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 | 80 | #if defined(ZIG_OS_POSIX) |
| 75 | 81 | static void populate_termination(Termination *term, int status) { |
| 76 | 82 | if (WIFEXITED(status)) { |