summaryrefslogtreecommitdiff
path: root/os/os.h
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2008-05-30 15:02:38 +0200
committerJens Axboe <jens.axboe@oracle.com>2008-05-30 15:02:38 +0200
commit5921e80c5dfc9f96d2f21da6ae58f2b5d3a0b373 (patch)
tree6edeb9e2b3a114351af6df84da29cd8af6554e4b /os/os.h
parentd0c70934dde93a8ee260a84c1bf69ff24484d486 (diff)
downloadfio-5921e80c5dfc9f96d2f21da6ae58f2b5d3a0b373.tar.gz
fio-5921e80c5dfc9f96d2f21da6ae58f2b5d3a0b373.tar.bz2
Make it work on opensolaris
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'os/os.h')
-rw-r--r--os/os.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/os/os.h b/os/os.h
index 42cd63d0..b1ed1bb6 100644
--- a/os/os.h
+++ b/os/os.h
@@ -24,6 +24,10 @@
#include <scsi/sg.h>
#endif
+#ifndef FIO_HAVE_STRSEP
+#include "../lib/lib.h"
+#endif
+
#ifndef FIO_HAVE_FADVISE
#define fadvise(fd, off, len, advice) (0)
@@ -36,7 +40,7 @@
#ifndef FIO_HAVE_CPU_AFFINITY
#define fio_setaffinity(td) (0)
-#define fio_getaffinity(pid, mask) (0)
+#define fio_getaffinity(pid, mask) do { } while(0)
#endif
#ifndef FIO_HAVE_IOPRIO
@@ -60,6 +64,10 @@
#endif
#endif
+#ifndef FIO_O_NOATIME
+#define FIO_O_NOATIME 0
+#endif
+
#ifndef FIO_HAVE_RAWBIND
#define fio_lookup_raw(dev, majdev, mindev) 1
#endif
@@ -69,6 +77,7 @@ static inline int is_blktrace(const char *fname)
{
return 0;
}
+struct thread_data;
static inline int load_blktrace(struct thread_data *td, const char *fname)
{
return 1;