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