projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e18941a
)
solaris: OpenSolaris already has the madvise advice defined
author
Jens Axboe
<jaxboe@fusionio.com>
Thu, 27 Jan 2011 09:10:07 +0000
(10:10 +0100)
committer
Jens Axboe
<jaxboe@fusionio.com>
Thu, 27 Jan 2011 09:10:07 +0000
(10:10 +0100)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
os/os-solaris.h
patch
|
blob
|
blame
|
history
diff --git
a/os/os-solaris.h
b/os/os-solaris.h
index f93a04c8d69149dda8121279f754eaad2dfe004a..681d4a60729e5f8207c79c9a0fc9ac41ede3c72e 100644
(file)
--- 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;