diff --git a/src/unix/internal.h b/src/unix/internal.h index 1adb5f20..3ae5d054 100644 --- a/src/unix/internal.h +++ b/src/unix/internal.h @@ -59,6 +59,18 @@ # define HAVE_SYS_ACCEPT4 1 # endif +# ifndef O_CLOEXEC +# define O_CLOEXEC 02000000 +# endif + +# ifndef SOCK_CLOEXEC +# define SOCK_CLOEXEC O_CLOEXEC +# endif + +# ifndef SOCK_NONBLOCK +# define SOCK_NONBLOCK O_NONBLOCK +# endif + # if HAVE_SYS_UTIMESAT inline static int sys_utimesat(int dirfd, const char* path,