* xlat/efd_flags.in: Check that O_CLOEXEC is defined.
* xlat/epollflags.in: Likewise.
* xlat/sfd_flags.in: Likewise.
* xlat/timerfdflags.in: Fix O_CLOEXEC check.
EFD_SEMAPHORE 1
+#if defined EFD_CLOEXEC || defined O_CLOEXEC
EFD_CLOEXEC O_CLOEXEC
+#endif
EFD_NONBLOCK O_NONBLOCK
+#if defined EPOLL_CLOEXEC || defined O_CLOEXEC
EPOLL_CLOEXEC O_CLOEXEC
+#endif
+#if defined SFD_CLOEXEC || defined O_CLOEXEC
SFD_CLOEXEC O_CLOEXEC
+#endif
SFD_NONBLOCK O_NONBLOCK
TFD_TIMER_ABSTIME (1 << 0)
TFD_TIMER_CANCEL_ON_SET (1 << 1)
-#ifdef O_CLOEXEC
+#if defined TFD_CLOEXEC || defined O_CLOEXEC
TFD_CLOEXEC O_CLOEXEC
#endif
TFD_NONBLOCK O_NONBLOCK