summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-05-18 09:31:59 -0700
committerElliott Hughes <enh@google.com>2017-05-18 09:31:59 -0700
commit1dd6771e0f2e7da8736c9b21603817bce0d55ea9 (patch)
treee7a3c3fc01b76f339dea370d9af5ada6bf4df871
parent1fe2b737ad19056bc2bc298b7c30ac93d36a4f6b (diff)
downloadrootdev-1dd6771e0f2e7da8736c9b21603817bce0d55ea9.tar.gz
Cope with <sys/sysmacros.h> no longer being included by <sys/types.h>.android-o-preview-4android-o-preview-3android-o-iot-preview-5o-iot-preview-5
I'm not sure where (if anywhere) is upstream here, so modifying our makefile rather than the source. Bug: https://github.com/android-ndk/ndk/issues/398 Test: builds Change-Id: I2690bbba6c4ac98c957f780e9b9625e8690052f8
-rw-r--r--Android.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 0f53ed9..c451ef4 100644
--- a/Android.mk
+++ b/Android.mk
@@ -18,6 +18,7 @@ rootdev_CFLAGS := \
-D_BSD_SOURCE \
-D_FILE_OFFSET_BITS=64 \
-D_LARGEFILE_SOURCE \
+ -include sys/sysmacros.h \
-Wall -Werror -Wno-sign-compare \
# Build the shared library.