FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

environ symbol fix for Mac OS X · wave2future/node@50443f0 · GitHub

Repository navigation

Commit 50443f0

Browse files
authored andcommitted
environ symbol fix for Mac OS X
1 parent 2944e03 commit 50443f0

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎src/node.cc‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@
4949

5050
using namespace v8;
5151

52+
# ifdef __APPLE__
53+
# include <crt_externs.h>
54+
# define environ (*_NSGetEnviron())
55+
# else
5256
extern char **environ;
57+
# endif
5358

5459
namespace node {
5560

‎src/node_child_process.cc‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@
1313
#include <sys/wait.h>
1414
#endif
1515

16+
# ifdef __APPLE__
17+
# include <crt_externs.h>
18+
# define environ (*_NSGetEnviron())
19+
# else
1620
extern char **environ;
21+
# endif
1722

1823
namespace node {
1924

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL