summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;