mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
Fix windows build
This commit is contained in:
@@ -53,7 +53,12 @@ static Persistent<String> buf_symbol;
|
||||
|
||||
|
||||
static inline bool SetCloseOnExec(int fd) {
|
||||
#ifdef __POSIX__
|
||||
return (fcntl(fd, F_SETFD, FD_CLOEXEC) != -1);
|
||||
#else // __MINGW32__
|
||||
/* no-op on windows */
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user