Skip to content

Commit

Permalink
luv_portability: windows: define getpid as _getpid
Browse files Browse the repository at this point in the history
To make the getpid function work on windows define _getpid as getpid.
node uses this logic too.
  • Loading branch information
philips committed May 26, 2012
1 parent d8bc9b9 commit 3a57311
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/luv_portability.h
Expand Up @@ -20,6 +20,7 @@

#if _MSC_VER
#define snprintf _snprintf
#define getpid _getpid
#endif

#if defined(__OpenBSD__) || defined(__MINGW32__) || defined(_MSC_VER)
Expand Down

0 comments on commit 3a57311

Please sign in to comment.