environ symbol fix for Mac OS X
This commit is contained in:
parent
2944e03a03
commit
50443f08e0
@ -49,7 +49,12 @@
|
|||||||
|
|
||||||
using namespace v8;
|
using namespace v8;
|
||||||
|
|
||||||
|
# ifdef __APPLE__
|
||||||
|
# include <crt_externs.h>
|
||||||
|
# define environ (*_NSGetEnviron())
|
||||||
|
# else
|
||||||
extern char **environ;
|
extern char **environ;
|
||||||
|
# endif
|
||||||
|
|
||||||
namespace node {
|
namespace node {
|
||||||
|
|
||||||
|
@ -13,7 +13,12 @@
|
|||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
# ifdef __APPLE__
|
||||||
|
# include <crt_externs.h>
|
||||||
|
# define environ (*_NSGetEnviron())
|
||||||
|
# else
|
||||||
extern char **environ;
|
extern char **environ;
|
||||||
|
# endif
|
||||||
|
|
||||||
namespace node {
|
namespace node {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user