From f68d2f7c7f17b3da8d946cec82c28d2767d28478 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Sat, 15 Mar 2014 14:54:02 +0100
Subject: [PATCH] system/fd_util: export fd_set_cloexec()

---
 src/system/fd_util.c | 2 +-
 src/system/fd_util.h | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

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.