From 3f86e786f14e64dd0157ba00c846cc1b81b169c1 Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Thu, 13 Oct 2016 10:50:40 +0300 Subject: [PATCH] xlat: use IN_* prefix for inotify_init1 flag constants * xlat/inotify_init_flags.in: Replace O_* prefix with IN_* prefix for O_NONBLOCK and O_CLOEXEC constants, provide fallback definitions. --- xlat/inotify_init_flags.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xlat/inotify_init_flags.in b/xlat/inotify_init_flags.in index fb0338bc..163fb8f7 100644 --- a/xlat/inotify_init_flags.in +++ b/xlat/inotify_init_flags.in @@ -1,2 +1,4 @@ -O_NONBLOCK -O_CLOEXEC +IN_NONBLOCK O_NONBLOCK +#if defined IN_CLOEXEC || defined O_CLOEXEC +IN_CLOEXEC O_CLOEXEC +#endif -- 2.40.0