diff --git a/src/conf/janetconf.h b/src/conf/janetconf.h index e8d6e8b9..2343666b 100644 --- a/src/conf/janetconf.h +++ b/src/conf/janetconf.h @@ -58,7 +58,6 @@ /* #define JANET_NO_REALPATH */ /* #define JANET_NO_SYMLINKS */ /* #define JANET_NO_UMASK */ -/* #define JANET_NO_CLOEXEC */ /* #define JANET_OUT_OF_MEMORY do { printf("janet out of memory\n"); exit(1); } while (0) */ /* #define JANET_EXIT(msg) do { printf("C assert failed executing janet: %s\n", msg); exit(1); } while (0) */ /* #define JANET_TOP_LEVEL_SIGNAL(msg) call_my_function((msg), stderr) */ diff --git a/src/core/net.c b/src/core/net.c index 44fe7052..6d9ab81d 100644 --- a/src/core/net.c +++ b/src/core/net.c @@ -112,7 +112,7 @@ typedef struct { #endif static JanetStream *make_stream(int fd, int flags) { JanetStream *stream = janet_abstract(&StreamAT, sizeof(JanetStream)); -#if !defined(SOCK_CLOEXEC) && !defined(JANET_NO_CLOEXEC) +#if !defined(SOCK_CLOEXEC) && defined(O_CLOEXEC) int extra = O_CLOEXEC; #else int extra = 0;