]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix the configure check so that fair-sched works on Android too.
authorJulian Seward <jseward@acm.org>
Mon, 17 Dec 2012 14:46:48 +0000 (14:46 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 17 Dec 2012 14:46:48 +0000 (14:46 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13186

configure.in

index da0f5d4086e2fe5793ee6824e2eec47a662c4bed..78b5339613ea9d8c5dd7681c02d2f12153945e2d 100644 (file)
@@ -1972,6 +1972,8 @@ AC_CHECK_HEADERS([       \
 # 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,6 +1987,8 @@ AC_MSG_RESULT([yes])
 ac_have_usable_linux_futex_h=no
 AC_MSG_RESULT([no])
 ])
+CFLAGS="$save_CFLAGS"
+
 
 #----------------------------------------------------------------------------
 # Checks for typedefs, structures, and compiler characteristics.