summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2009-07-29 09:36:05 +0000
committerroot <root>2009-07-29 09:36:05 +0000
commitd0c0a48c2fb7e111de8206767b5001750982c0e5 (patch)
tree1da9619143e650c8020be83e9203923f68368127 /ev.c
parent0e567d1c49010d6dd78d12b095ad2d86b18b8ba2 (diff)
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ev.c b/ev.c
index 05c80bf..bfb87f2 100644
--- a/ev.c
+++ b/ev.c
@@ -388,7 +388,11 @@ extern "C" {
# define EFD_NONBLOCK O_NONBLOCK
# endif
# ifndef EFD_CLOEXEC
-# define EFD_CLOEXEC O_CLOEXEC
+# ifdef O_CLOEXEC
+# define EFD_CLOEXEC O_CLOEXEC
+# else
+# define EFD_CLOEXEC 02000000
+# endif
# endif
# ifdef __cplusplus
extern "C" {