mirror of https://github.com/nodejs/node.git
environ symbol fix for Mac OS X
parent
2944e03a03
commit
50443f08e0
|
@ -49,7 +49,12 @@
|
|||
|
||||
using namespace v8;
|
||||
|
||||
# ifdef __APPLE__
|
||||
# include <crt_externs.h>
|
||||
# define environ (*_NSGetEnviron())
|
||||
# else
|
||||
extern char **environ;
|
||||
# endif
|
||||
|
||||
namespace node {
|
||||
|
||||
|
|
|
@ -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…
Reference in New Issue