Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

environ symbol fix for Mac OS X

  • Loading branch information...
commit 78fac9b863723c7eb59c25069e690e197e590bb4 1 parent 969ee3d
@rsms rsms authored ry committed
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 {
Please sign in to comment.
Something went wrong with that request. Please try again.