[glib] Fix HAVE_FUTEX definition
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Fix HAVE_FUTEX definition
- Date: Sun, 22 May 2011 04:33:32 +0000 (UTC)
commit 22e7fc34c44c5ef95abf4fed429f2345410cc82c
Author: Matthias Clasen <mclasen redhat com>
Date: Sun May 22 00:33:05 2011 -0400
Fix HAVE_FUTEX definition
configure.ac | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 0898617..8fda196 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2590,15 +2590,16 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
int
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);
return 0;
}
])],
[
AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_FUTEX, [test "$have_futex" = "yes"],
- [we have the futex(2) system call])
+ if test "$have_futex" = "yes"; then
+ AC_DEFINE(HAVE_FUTEX, 1, [we have the futex(2) system call])
+ fi
],
[
AC_MSG_RESULT(no)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]