Commit a9c0c65f authored by cjihrig's avatar cjihrig
Browse files

src: define getpid() based on OS

94b9948d added unistd.h to src/env.cc in order to use getpid().
However, this doesn't exist on Windows. This commit conditionally
defines getpid() based on the OS.

Fixes: https://github.com/nodejs/node/issues/4145
PR-URL: https://github.com/nodejs/node/pull/4146


Reviewed-By: default avatarBrian White <mscdex@mscdex.net>
parent 5c6aac4d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment