mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
Fix HAVE_FUTEX definition
This commit is contained in:
parent
f924384634
commit
22e7fc34c4
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user