Browse Source

fix another case of cloexec/nonblock flags not matching arch values

Rich Felker 12 years ago
parent
commit
2dec29741b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      include/sys/signalfd.h

+ 3 - 2
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);