projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f924384
)
Fix HAVE_FUTEX definition
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 22 May 2011 04:33:05 +0000
(
00:33
-0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 22 May 2011 04:33:05 +0000
(
00:33
-0400)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index 08986175dd2e4e1e74c9a6b9526486ae7c7ef9d4..8fda196f49f0fd22e9b10b41a3a12e94647e931e 100644
(file)
--- 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)