summaryrefslogtreecommitdiff
path: root/os/os.h
diff options
context:
space:
mode:
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 2dfed5e2..1cff4945 100644
--- a/os/os.h
+++ b/os/os.h
@@ -68,6 +68,10 @@
#define FIO_O_NOATIME 0
#endif
+#ifndef OS_RAND_MAX
+#define OS_RAND_MAX RAND_MAX
+#endif
+
#ifndef FIO_HAVE_RAWBIND
#define fio_lookup_raw(dev, majdev, mindev) 1
#endif