summaryrefslogtreecommitdiffstats
path: root/src/3rdparty
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty')
-rw-r--r--src/3rdparty/forkfd/forkfd.c2
-rw-r--r--src/3rdparty/forkfd/forkfd.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/3rdparty/forkfd/forkfd.c b/src/3rdparty/forkfd/forkfd.c
index b781b517a6..067e41d486 100644
--- a/src/3rdparty/forkfd/forkfd.c
+++ b/src/3rdparty/forkfd/forkfd.c
@@ -404,7 +404,7 @@ int forkfd(int flags, pid_t *ppid)
#endif
{
/* try a pipe */
- if (create_pipe(sync_pipe, O_CLOEXEC) == -1) {
+ if (create_pipe(sync_pipe, FFD_CLOEXEC) == -1) {
/* failed both at eventfd and pipe; fail and pass errno */
goto err_close;
}
diff --git a/src/3rdparty/forkfd/forkfd.h b/src/3rdparty/forkfd/forkfd.h
index de75f84bc0..01b8882623 100644
--- a/src/3rdparty/forkfd/forkfd.h
+++ b/src/3rdparty/forkfd/forkfd.h
@@ -44,8 +44,8 @@
extern "C" {
#endif
-#define FFD_CLOEXEC O_CLOEXEC
-#define FFD_NONBLOCK O_NONBLOCK
+#define FFD_CLOEXEC 1
+#define FFD_NONBLOCK 2
#define FFD_CHILD_PROCESS (-2)