Browse Source

environ symbol fix for Mac OS X

v0.7.4-release
Rasmus Andersson 14 years ago
committed by Ryan Dahl
parent
commit
50443f08e0
  1. 5
      src/node.cc
  2. 5
      src/node_child_process.cc

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 {

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 {

Loading…
Cancel
Save