summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-05-18 10:05:50 -0700
committerElliott Hughes <enh@google.com>2017-05-18 10:05:50 -0700
commita54b8cbc93ac0b3ed398f93a3aec77c35a1b178a (patch)
tree6829ea4d3f8e5c171419937215a05f59dcaf654d
parentcf41806599b7d50ed4c91aab3815154b8c64324a (diff)
downloadfio-a54b8cbc93ac0b3ed398f93a3aec77c35a1b178a.tar.gz
fio assumes <sys/sysmacros.h> has been included.
Bug: https://github.com/android-ndk/ndk/issues/398 Test: builds Change-Id: I1a6b31173bd91b96a8c13f47599209dd03ec64e9
-rw-r--r--Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 35a6973b..87eb2495 100644
--- a/Android.mk
+++ b/Android.mk
@@ -101,6 +101,10 @@ LOCAL_CFLAGS += -DFIO_VERSION="\"fio-2.2.6\"" \
-Wno-unused-parameter \
-Wno-unused-variable \
+# Workaround until upstream copes with a glibc/bionic where <sys/types.h>
+# doesn't get you <sys/sysmacros.h> for free.
+LOCAL_CFLAGS += -include sys/sysmacros.h
+
LOCAL_LDFLAGS += \
-rdynamic \