[PATCH] Make fio compile on non-x86 again

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.h b/fio.h
index 2d30324..5fad446 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 f094d80..657a679 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 @@
 
 #define SPLICE_DEF_SIZE	(64*1024)
 
+#ifdef FIO_HAVE_SYSLET
 /*
  * syslet stuff
  */
@@ -101,6 +108,7 @@
 {
 	return syscall(__NR_umem_add, uptr, inc);
 }
+#endif /* FIO_HAVE_SYSLET */
 
 enum {
 	IOPRIO_WHO_PROCESS = 1,