summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorenh <enh@google.com>2015-02-25 14:00:01 -0700
committerMohamad Ayyash <mkayyash@google.com>2015-03-06 17:58:34 -0800
commit6a03ba6cbc8fb2ef3771269a95ea5eac96b22f36 (patch)
tree21d2c163604f0c85bc3541b94d4560b0daac41b8
parent7085a95311e4ab3ef5a6c3f8d50200b0a585b7a7 (diff)
downloadfio-6a03ba6cbc8fb2ef3771269a95ea5eac96b22f36.tar.gz
Fix implicit function declaration on Android
there's no fio_set_sched_idle in os/os-android.h. copy the one from os/os-linux.h. current Android also has posix_madvise. Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r--os/os-android.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/os/os-android.h b/os/os-android.h
index 6b074cd0..172ad9a0 100644
--- a/os/os-android.h
+++ b/os/os-android.h
@@ -38,6 +38,13 @@
#define OS_MAP_ANON MAP_ANONYMOUS
+#ifndef POSIX_MADV_DONTNEED
+#define posix_madvise madvise
+#define POSIX_MADV_DONTNEED MADV_DONTNEED
+#define POSIX_MADV_SEQUENTIAL MADV_SEQUENTIAL
+#define POSIX_MADV_RANDOM MADV_RANDOM
+#endif
+
#ifdef MADV_REMOVE
#define FIO_MADV_FREE MADV_REMOVE
#endif