]> granicus.if.org Git - strace/commit
futex: do not pretend <linux/futex.h> is included
authorEugene Syromyatnikov <evgsyr@gmail.com>
Tue, 30 Aug 2016 13:24:37 +0000 (16:24 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 30 Aug 2016 17:29:28 +0000 (17:29 +0000)
commitd02a91dd2cce2e3272e4c485884b90ed73fe512a
treef4dc2c87359b2abd6623b6bb1a633dac28e45ea6
parent110da33afff6551122c90af35b2c697377e13bb5
futex: do not pretend <linux/futex.h> is included

As configure.ac does not check for linux/futex.h, HAVE_LINUX_FUTEX_H is
never defined and therefore the inclusion of <linux/futex.h> guarded by
HAVE_LINUX_FUTEX_H makes no sense.

Moreover, <linux/futex.h> 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