diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/system/fd_util.c | 2 | ||||
-rw-r--r-- | src/system/fd_util.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/system/fd_util.c b/src/system/fd_util.c index 97ec5ba5e..b53ecda00 100644 --- a/src/system/fd_util.c +++ b/src/system/fd_util.c @@ -69,7 +69,7 @@ fd_mask_flags(int fd, int and_mask, int xor_mask) #endif /* !WIN32 */ -static int +int fd_set_cloexec(int fd, bool enable) { #ifndef WIN32 diff --git a/src/system/fd_util.h b/src/system/fd_util.h index 3c72890e1..f4a940e91 100644 --- a/src/system/fd_util.h +++ b/src/system/fd_util.h @@ -51,6 +51,9 @@ struct sockaddr; extern "C" { #endif +int +fd_set_cloexec(int fd, bool enable); + /** * Wrapper for dup(), which sets the CLOEXEC flag on the new * descriptor. |