diff --git a/src/env.cc b/src/env.cc index 96ad9a12c3..fa8cc0d1ad 100644 --- a/src/env.cc +++ b/src/env.cc @@ -1,7 +1,13 @@ #include "env.h" #include "env-inl.h" #include "v8.h" -#include "unistd.h" + +#if defined(_MSC_VER) +#define getpid GetCurrentProcessId +#else +#include +#endif + #include namespace node {