mirror of
https://github.com/janet-lang/janet
synced 2025-10-27 13:47:42 +00:00
Simplifying workaround for missing O_CLOEXEC
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user