diff options
author | Laurent Aguerreche <laurent.aguerreche@free.fr> | 2010-01-04 11:14:43 +0000 |
---|---|---|
committer | Martyn Russell <martyn@lanedo.com> | 2010-01-04 11:14:43 +0000 |
commit | b5cec89b29e9db6ac8af70ecc74de004cce403c9 (patch) | |
tree | 93aafcd3f76d06ea02401cc5bf44a278a7a80598 | |
parent | 920e2fe99849d9b283dce98466fe517b54596188 (diff) | |
download | tracker-b5cec89b29e9db6ac8af70ecc74de004cce403c9.tar.gz |
Fixes GB#604655, Fix detection of ioprio
-rw-r--r-- | configure.ac | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/configure.ac b/configure.ac index c711ba735..262af062e 100644 --- a/configure.ac +++ b/configure.ac @@ -1350,21 +1350,17 @@ AM_CONDITIONAL(HAVE_LIBVORBIS, test "x$have_libvorbis" = "xyes") AC_CACHE_CHECK([if we have ioprio],[tracker_cv_have_ioprio], [AC_RUN_IFELSE( [AC_LANG_PROGRAM([[ - #include <stdlib.h> - #include <errno.h> - #include <sys/syscall.h> - #include <unistd.h> + #include <stdlib.h> + #include <errno.h> + #include <sys/syscall.h> + #include <unistd.h> + inline int ioprio_get (int which, int who) + { + return syscall (__NR_ioprio_get, which, who); + } ]], [[ - inline int ioprio_get (int which, int who) - { - return syscall (__NR_ioprio_get, which, who); - } - - int main () - { - return ioprio_get (1, 0); - } + return !(ioprio_get (1, 0) != -1); ]])], [tracker_cv_have_ioprio=yes], [tracker_cv_have_ioprio=no], |