From: Dmitry V. Levin Date: Fri, 9 Jan 2015 03:47:23 +0000 (+0000) Subject: Fix build on systems that lack O_CLOEXEC definition X-Git-Tag: v4.10~239 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75023a9381f49dd1a74ffc7d7397d88686d10cf9;p=strace Fix build on systems that lack O_CLOEXEC definition * xlat/timerfdflags.in [!TFD_CLOEXEC]: Check that O_CLOEXEC is defined. --- diff --git a/xlat/timerfdflags.in b/xlat/timerfdflags.in index e4e2b104..7d529eba 100644 --- a/xlat/timerfdflags.in +++ b/xlat/timerfdflags.in @@ -10,7 +10,7 @@ TFD_TIMER_ABSTIME #endif TFD_TIMER_CANCEL_ON_SET -#ifndef TFD_CLOEXEC +#if !defined TFD_CLOEXEC && defined O_CLOEXEC # define TFD_CLOEXEC O_CLOEXEC #endif TFD_CLOEXEC