| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2944e03 commit 50443f0
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49,7 +49,12 @@ | |||
| 49 | 49 | ||
| 50 | 50 | using namespace v8; | |
| 51 | 51 | ||
| 52 | + # ifdef __APPLE__ | ||
| 53 | + # include <crt_externs.h> | ||
| 54 | + # define environ (*_NSGetEnviron()) | ||
| 55 | + # else | ||
| 52 | 56 | extern char **environ; | |
| 57 | + # endif | ||
| 53 | 58 | ||
| 54 | 59 | namespace node { | |
| 55 | 60 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,12 @@ | |||
| 13 | 13 | #include <sys/wait.h> | |
| 14 | 14 | #endif | |
| 15 | 15 | ||
| 16 | + # ifdef __APPLE__ | ||
| 17 | + # include <crt_externs.h> | ||
| 18 | + # define environ (*_NSGetEnviron()) | ||
| 19 | + # else | ||
| 16 | 20 | extern char **environ; | |
| 21 | + # endif | ||
| 17 | 22 | ||
| 18 | 23 | namespace node { | |
| 19 | 24 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments