about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-01-10 17:57:30 -0500
committerRich Felker <dalias@aerifal.cx>2013-01-10 17:57:30 -0500
commit2dec29741b7d7024da8f4f1e03d309510834b28d (patch)
tree9977778b5aa48a649a7a392faef2b2b631e80b89 /include
parent6468fc9e37fd7a12c1406c03aa7c6b5e869d799b (diff)
downloadmusl-2dec29741b7d7024da8f4f1e03d309510834b28d.tar.gz
musl-2dec29741b7d7024da8f4f1e03d309510834b28d.tar.xz
musl-2dec29741b7d7024da8f4f1e03d309510834b28d.zip
fix another case of cloexec/nonblock flags not matching arch values
Diffstat (limited to 'include')
-rw-r--r--include/sys/signalfd.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sys/signalfd.h b/include/sys/signalfd.h
index 297aac73..4f3d3999 100644
--- a/include/sys/signalfd.h
+++ b/include/sys/signalfd.h
@@ -6,13 +6,14 @@ extern "C" {
 #endif
 
 #include <stdint.h>
+#include <fcntl.h>
 
 #define __NEED_sigset_t
 
 #include <bits/alltypes.h>
 
-#define SFD_CLOEXEC 02000000
-#define SFD_NONBLOCK 04000
+#define SFD_CLOEXEC O_CLOEXEC
+#define SFD_NONBLOCK O_NONBLOCK
 
 int signalfd(int, const sigset_t *, int);