Fix HAVE_FUTEX definition

This commit is contained in:
Matthias Clasen 2011-05-22 00:33:05 -04:00
parent f924384634
commit 22e7fc34c4

View File

@ -2590,15 +2590,16 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
int int
main (void) main (void)
{ {
/* it's not like this actually runs or anything... */ /* not like this actually runs or anything... */
syscall (SYS_futex, NULL, FUTEX_WAKE, FUTEX_WAIT); syscall (SYS_futex, NULL, FUTEX_WAKE, FUTEX_WAIT);
return 0; return 0;
} }
])], ])],
[ [
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_FUTEX, [test "$have_futex" = "yes"], if test "$have_futex" = "yes"; then
[we have the futex(2) system call]) AC_DEFINE(HAVE_FUTEX, 1, [we have the futex(2) system call])
fi
], ],
[ [
AC_MSG_RESULT(no) AC_MSG_RESULT(no)