glusterfs: update for new API
[fio.git] / os / os-linux.h
index ba58bf7d962380413f15441d259eea8573f3c26e..36339ef3e94250200c909e4fbad2fcf8dffcd7f4 100644 (file)
@@ -124,10 +124,12 @@ static inline int ioprio_set(int which, int who, int ioprio_class, int ioprio)
        return syscall(__NR_ioprio_set, which, who, ioprio);
 }
 
+#ifndef CONFIG_HAVE_GETTID
 static inline int gettid(void)
 {
        return syscall(__NR_gettid);
 }
+#endif
 
 #define SPLICE_DEF_SIZE        (64*1024)