[tracker/functions] Fixes GB#604655, Fix detection of ioprio
- From: Mikael Ottela <mottela src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/functions] Fixes GB#604655, Fix detection of ioprio
- Date: Thu, 14 Jan 2010 09:09:16 +0000 (UTC)
commit fc0e79166ff03bf86c4c294205eb0c23fe816f3d
Author: Laurent Aguerreche <laurent aguerreche free fr>
Date: Mon Jan 4 11:14:43 2010 +0000
Fixes GB#604655, Fix detection of ioprio
configure.ac | 22 +++++++++-------------
1 files changed, 9 insertions(+), 13 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c711ba7..262af06 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],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]