summaryrefslogtreecommitdiff
path: root/src/sysdeps/tryocloexec.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-04-16 12:57:52 +0000
committerLaurent Bercot <ska@appnovation.com>2024-04-16 12:57:52 +0000
commit825b80eaa311b0aec4c00614f38f3eb63949d5a7 (patch)
tree624f702487d9acdd3cc85060cfe2edc388cf7096 /src/sysdeps/tryocloexec.c
parentbfc53cfde4fdda343647678fcd21b38a44f2de08 (diff)
downloadskalibs-825b80eaa311b0aec4c00614f38f3eb63949d5a7.tar.xz
Tentative support for old MacOS with no O_CLOEXEC
Also add a prototype for gol, not finished yet. Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/sysdeps/tryocloexec.c')
-rw-r--r--src/sysdeps/tryocloexec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sysdeps/tryocloexec.c b/src/sysdeps/tryocloexec.c
new file mode 100644
index 0000000..bd318ae
--- /dev/null
+++ b/src/sysdeps/tryocloexec.c
@@ -0,0 +1,5 @@
+/* ISC license. */
+
+#include <fcntl.h>
+
+int dummy = O_CLOEXEC ;