summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <jaxboe@fusionio.com>2011-01-27 10:10:07 +0100
committerJens Axboe <jaxboe@fusionio.com>2011-01-27 10:10:07 +0100
commit3f77f72359e90175d86d549e82c9b2a3488df6dc (patch)
tree92f081eb1bd7b95730a60b035649e3d3e768e49b
parente18941aab394d4a68df10379fec7184b52f95b3f (diff)
downloadfio-3f77f72359e90175d86d549e82c9b2a3488df6dc.tar.gz
fio-3f77f72359e90175d86d549e82c9b2a3488df6dc.tar.bz2
solaris: OpenSolaris already has the madvise advice defined
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
-rw-r--r--os/os-solaris.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/os/os-solaris.h b/os/os-solaris.h
index f93a04c8..681d4a60 100644
--- a/os/os-solaris.h
+++ b/os/os-solaris.h
@@ -27,10 +27,12 @@ struct solaris_rand_seed {
unsigned short r[3];
};
+#ifndef POSIX_MADV_SEQUENTIAL
#define posix_madvise madvise
-#define POSIX_MADV_DONTNEED MADV_DONTNEED
#define POSIX_MADV_SEQUENTIAL MADV_SEQUENTIAL
+#define POSIX_MADV_DONTNEED MADV_DONTNEED
#define POSIX_MADV_RANDOM MADV_RANDOM
+#endif
typedef psetid_t os_cpu_mask_t;
typedef struct solaris_rand_seed os_random_state_t;