From b4d8a16c1afde1d06e1d46f22f5fab2cda408122 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 26 Nov 2012 13:00:58 -0500 Subject: fix eventfd and inotify nonblock/cloexec flags to match arch values --- include/sys/inotify.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/sys/inotify.h') diff --git a/include/sys/inotify.h b/include/sys/inotify.h index 78acdfd0..fe251360 100644 --- a/include/sys/inotify.h +++ b/include/sys/inotify.h @@ -6,6 +6,7 @@ extern "C" { #endif #include +#include struct inotify_event { int wd; @@ -13,8 +14,8 @@ struct inotify_event { char name[]; }; -#define IN_CLOEXEC 02000000 -#define IN_NONBLOCK 04000 +#define IN_CLOEXEC O_CLOEXEC +#define IN_NONBLOCK O_NONBLOCK #define IN_ACCESS 0x00000001 #define IN_MODIFY 0x00000002 -- cgit v1.2.1