Fix windows build

This commit is contained in:
Bert Belder
2011-01-25 03:49:03 +01:00
committed by Ryan Dahl
parent 068b733583
commit f9fea12555

View File

@@ -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
}