strace/xlat/timerfdflags.in
Dmitry V. Levin 75023a9381 Fix build on systems that lack O_CLOEXEC definition
* xlat/timerfdflags.in [!TFD_CLOEXEC]: Check that O_CLOEXEC is defined.
2015-01-09 03:47:23 +00:00

22 lines
437 B
Plaintext

/* The Linux userspace headers didn't export these for a long time. */
#ifndef TFD_TIMER_ABSTIME
# define TFD_TIMER_ABSTIME (1 << 0)
#endif
TFD_TIMER_ABSTIME
#ifndef TFD_TIMER_CANCEL_ON_SET
# define TFD_TIMER_CANCEL_ON_SET (1 << 1)
#endif
TFD_TIMER_CANCEL_ON_SET
#if !defined TFD_CLOEXEC && defined O_CLOEXEC
# define TFD_CLOEXEC O_CLOEXEC
#endif
TFD_CLOEXEC
#ifndef TFD_NONBLOCK
# define TFD_NONBLOCK O_NONBLOCK
#endif
TFD_NONBLOCK