Skip to content
Browse files

environ symbol fix for Mac OS X

  • Loading branch information...
1 parent 969ee3d commit 78fac9b863723c7eb59c25069e690e197e590bb4 @rsms rsms committed with ry
Showing with 10 additions and 0 deletions.
  1. +5 −0 src/node.cc
  2. +5 −0 src/node_child_process.cc
View
5 src/node.cc
@@ -49,7 +49,12 @@
using namespace v8;
+# ifdef __APPLE__
+# include <crt_externs.h>
+# define environ (*_NSGetEnviron())
+# else
extern char **environ;
+# endif
namespace node {
View
5 src/node_child_process.cc
@@ -13,7 +13,12 @@
#include <sys/wait.h>
#endif
+# ifdef __APPLE__
+# include <crt_externs.h>
+# define environ (*_NSGetEnviron())
+# else
extern char **environ;
+# endif
namespace node {

0 comments on commit 78fac9b

Please sign in to comment.
Something went wrong with that request. Please try again.