Fix futex(2) detection and use
authorRyan Lortie <desrt@desrt.ca>
Sat, 28 May 2011 21:27:12 +0000 (17:27 -0400)
committerRyan Lortie <desrt@desrt.ca>
Sat, 28 May 2011 21:27:12 +0000 (17:27 -0400)
commit858a32879291ebb5612c7500fc195c30fb6e8496
treef7f4646cc68af239bc48726900553a69456be854
parent83821352657a9481dbff6ab04e8ae60566c17d5e
Fix futex(2) detection and use

Commit 22e7fc34c44c5ef95abf4fed429f2345410cc82c introduced a regression:
futexes were always disabled and the emulated codepath was always being
used.  That commit was in response to an originally buggy
implementationt hat wrote junk into config.h (but happened to be working
properly).

Fix up the mess and while we're at it, close bug #631231 by including
syscall.h from the correct location and using __NR_futex instead of
SYS_futex.

Closes #631231.
configure.ac
glib/gbitlock.c