[tracker/tracker-0.10] libtracker-common: Fix compiler warning if HAVE_IOPRIO not defined



commit dee9fd728ea9ad48b82fae6651a6f44b3d2c8b45
Author: Philip Van Hoof <philip codeminded be>
Date:   Mon Feb 21 13:28:04 2011 +0100

    libtracker-common: Fix compiler warning if HAVE_IOPRIO not defined

 src/libtracker-common/tracker-ioprio.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-common/tracker-ioprio.c b/src/libtracker-common/tracker-ioprio.c
index 367510d..1c37049 100644
--- a/src/libtracker-common/tracker-ioprio.c
+++ b/src/libtracker-common/tracker-ioprio.c
@@ -42,8 +42,12 @@
 
 #include <libtracker-common/tracker-log.h>
 
+#endif /* HAVE_IOPRIO */
+
 #include "tracker-ioprio.h"
 
+#ifdef HAVE_IOPRIO
+
 #ifndef __NR_ioprio_set
 
 #if defined(__i386__)
@@ -138,6 +142,7 @@ tracker_ioprio_init (void)
 
 #else  /* HAVE_IOPRIO */
 
+
 void
 tracker_ioprio_init (void)
 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]