diff --git a/src/unix/linux-syscalls.h b/src/unix/linux-syscalls.h index 05040b1f5..dee7d1b58 100644 --- a/src/unix/linux-syscalls.h +++ b/src/unix/linux-syscalls.h @@ -59,13 +59,6 @@ #define UV__IN_CLOEXEC UV__O_CLOEXEC #define UV__IN_NONBLOCK UV__O_NONBLOCK -#define UV__SOCK_CLOEXEC UV__O_CLOEXEC -#if defined(SOCK_NONBLOCK) -# define UV__SOCK_NONBLOCK SOCK_NONBLOCK -#else -# define UV__SOCK_NONBLOCK UV__O_NONBLOCK -#endif - /* inotify flags */ #define UV__IN_ACCESS 0x001 #define UV__IN_MODIFY 0x002 diff --git a/src/unix/process.c b/src/unix/process.c index bb6b76c9f..055a2c7d6 100644 --- a/src/unix/process.c +++ b/src/unix/process.c @@ -119,7 +119,7 @@ int uv__make_socketpair(int fds[2], int flags) { if (no_cloexec) goto skip; - if (socketpair(AF_UNIX, SOCK_STREAM | UV__SOCK_CLOEXEC | flags, 0, fds) == 0) + if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | flags, 0, fds) == 0) return 0; /* Retry on EINVAL, it means SOCK_CLOEXEC is not supported.