summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure24
1 files changed, 24 insertions, 0 deletions
diff --git a/configure b/configure
index ddc8ee0b..c897c7e2 100755
--- a/configure
+++ b/configure
@@ -1330,6 +1330,30 @@ else
fi
#
+# fcntl
+#
+
+printf "Checking for POSIX fcntl ... "
+
+cat > conftest.c <<!
+#include "config.h"
+#include <fcntl.h>
+
+int main(int argc, char **argv)
+{
+ int err = fcntl(0, F_SETFD, FD_CLOEXEC);
+ return 0;
+}
+!
+
+if conftest ; then
+ printf "yes\n"
+ printf "#define HAVE_FCNTL_H 1\n" >> config.h
+else
+ printf "no\n"
+fi
+
+#
# Check for fields inside struct tm
#