|
From: <sv...@va...> - 2012-12-17 14:46:58
|
sewardj 2012-12-17 14:46:48 +0000 (Mon, 17 Dec 2012)
New Revision: 13186
Log:
Fix the configure check so that fair-sched works on Android too.
Modified files:
trunk/configure.in
Modified: trunk/configure.in (+4 -0)
===================================================================
--- trunk/configure.in 2012-12-17 12:44:03 +00:00 (rev 13185)
+++ trunk/configure.in 2012-12-17 14:46:48 +00:00 (rev 13186)
@@ -1972,6 +1972,8 @@
# Verify whether the <linux/futex.h> header is usable.
AC_MSG_CHECKING([if <linux/futex.h> is usable])
+save_CFLAGS="$CFLAGS"
+CFLAGS="$CFLAGS -D__user="
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <linux/futex.h>
]], [[
@@ -1985,7 +1987,9 @@
ac_have_usable_linux_futex_h=no
AC_MSG_RESULT([no])
])
+CFLAGS="$save_CFLAGS"
+
#----------------------------------------------------------------------------
# Checks for typedefs, structures, and compiler characteristics.
#----------------------------------------------------------------------------
|