X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-linux.h;h=36339ef3e94250200c909e4fbad2fcf8dffcd7f4;hp=ba58bf7d962380413f15441d259eea8573f3c26e;hb=de5ed0e4d398bc9d4576f9b2b82d7686989c27e1;hpb=a7760ecdb13394819b719f3f8181cc74c3d4affa;ds=sidebyside diff --git a/os/os-linux.h b/os/os-linux.h index ba58bf7d..36339ef3 100644 --- a/os/os-linux.h +++ b/os/os-linux.h @@ -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)