From b6959b55efa7f464dbb7e7f2021dd67d297219bd Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 14 Feb 2007 21:40:27 +0000 Subject: [PATCH] [PATCH] Make fio compile on non-x86 again Signed-off-by: Jens Axboe --- fio.h | 2 ++ os-linux.h | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/fio.h b/fio.h index 2d30324c..5fad4464 100644 --- a/fio.h +++ b/fio.h @@ -18,7 +18,9 @@ #include "arch.h" #include "os.h" +#ifdef FIO_HAVE_SYSLET #include "syslet.h" +#endif enum fio_ddir { DDIR_READ = 0, diff --git a/os-linux.h b/os-linux.h index f094d80a..657a679e 100644 --- a/os-linux.h +++ b/os-linux.h @@ -19,7 +19,13 @@ #define FIO_HAVE_IOSCHED_SWITCH #define FIO_HAVE_ODIRECT #define FIO_HAVE_HUGETLB + +/* + * Only for x86 currently + */ +#if defined(__i386__) #define FIO_HAVE_SYSLET +#endif #define OS_MAP_ANON (MAP_ANONYMOUS) @@ -74,6 +80,7 @@ static inline int vmsplice(int fd, const struct iovec *iov, #define SPLICE_DEF_SIZE (64*1024) +#ifdef FIO_HAVE_SYSLET /* * syslet stuff */ @@ -101,6 +108,7 @@ static inline long umem_add(unsigned long *uptr, unsigned long inc) { return syscall(__NR_umem_add, uptr, inc); } +#endif /* FIO_HAVE_SYSLET */ enum { IOPRIO_WHO_PROCESS = 1, -- 2.25.1