fix another case of cloexec/nonblock flags not matching arch values
authorRich Felker <dalias@aerifal.cx>
Thu, 10 Jan 2013 22:57:30 +0000 (17:57 -0500)
committerRich Felker <dalias@aerifal.cx>
Thu, 10 Jan 2013 22:57:30 +0000 (17:57 -0500)
include/sys/signalfd.h

index 297aac73ec594415a7a5abe72bab9056b306dbf6..4f3d3999d4ae6f8d70d9ac4e86e1e74f18778580 100644 (file)
@@ -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);