summaryrefslogtreecommitdiff
path: root/os/os.h
diff options
context:
space:
mode:
authorShawn Lewis <shawnlewis@google.com>2007-07-25 07:51:58 +0200
committerJens Axboe <jens.axboe@oracle.com>2007-07-25 07:51:58 +0200
commit4d8947de2b50578a4f6290be567cb5de5bf46776 (patch)
tree288c646f44473d6c786657a30ca982f2a637fa9a /os/os.h
parent20e354ef1243541ea196619772b83a962d7cb4df (diff)
downloadfio-4d8947de2b50578a4f6290be567cb5de5bf46776.tar.gz
fio-4d8947de2b50578a4f6290be567cb5de5bf46776.tar.bz2
Fix headers for building with some older libs
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'os/os.h')
-rw-r--r--os/os.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/os.h b/os/os.h
index 660dcc52..42cd63d0 100644
--- a/os/os.h
+++ b/os/os.h
@@ -27,9 +27,11 @@
#ifndef FIO_HAVE_FADVISE
#define fadvise(fd, off, len, advice) (0)
+#ifndef POSIX_FADV_DONTNEED
#define POSIX_FADV_DONTNEED (0)
#define POSIX_FADV_SEQUENTIAL (0)
#define POSIX_FADV_RANDOM (0)
+#endif
#endif /* FIO_HAVE_FADVISE */
#ifndef FIO_HAVE_CPU_AFFINITY
@@ -49,7 +51,9 @@
#ifndef FIO_HAVE_HUGETLB
#define SHM_HUGETLB 0
+#ifndef FIO_HUGE_PAGE
#define FIO_HUGE_PAGE 0
+#endif
#else
#ifndef FIO_HUGE_PAGE
#define FIO_HUGE_PAGE 4194304