From d02a91dd2cce2e3272e4c485884b90ed73fe512a Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Tue, 30 Aug 2016 16:24:37 +0300 Subject: [PATCH] futex: do not pretend is included As configure.ac does not check for linux/futex.h, HAVE_LINUX_FUTEX_H is never defined and therefore the inclusion of guarded by HAVE_LINUX_FUTEX_H makes no sense. Moreover, used to have an incorrect definition of FUTEX_WAIT_BITSET_PRIVATE and FUTEX_WAKE_BITSET_PRIVATE: since kernel commit v2.6.24-6320-gcd68998 where these definitions were initially introduced and up to v2.6.31-7082-gf8d1e54 where they were finally fixed these macros had been incorrectly defined via FUTEX_WAIT_BITS and FUTEX_WAKE_BITS instead of FUTEX_WAIT_BITSET and FUTEX_WAKE_BITSET, and these incorrect definitions made their way into some distributions still in use. * futex.c [HAVE_LINUX_FUTEX_H]: Remove. --- futex.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/futex.c b/futex.c index 9410b2a6..d1b5a42c 100644 --- a/futex.c +++ b/futex.c @@ -30,10 +30,6 @@ #include "defs.h" -#ifdef HAVE_LINUX_FUTEX_H -# include -#endif - #ifndef FUTEX_PRIVATE_FLAG # define FUTEX_PRIVATE_FLAG 128 #endif -- 2.50.1