]> granicus.if.org Git - strace/commitdiff
Fix build on systems that lack O_CLOEXEC definition
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 9 Jan 2015 03:47:23 +0000 (03:47 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 9 Jan 2015 03:47:23 +0000 (03:47 +0000)
* xlat/timerfdflags.in [!TFD_CLOEXEC]: Check that O_CLOEXEC is defined.

xlat/timerfdflags.in

index e4e2b104f427dca6b1cba43bd35cd3a6223389d4..7d529eba326dbb8aeea827513a7aef23fe18ef60 100644 (file)
@@ -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