environ symbol fix for Mac OS X

pull/22966/head
Rasmus Andersson 2010-10-11 17:19:11 +02:00 committed by Ryan Dahl
parent 2944e03a03
commit 50443f08e0
2 changed files with 10 additions and 0 deletions

View File

@ -49,7 +49,12 @@
using namespace v8;
# ifdef __APPLE__
# include <crt_externs.h>
# define environ (*_NSGetEnviron())
# else
extern char **environ;
# endif
namespace node {

View File

@ -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 {