Ignore deprecation warnings for readdir_r.
Until upstream switches over, which doesn't seem like it's happening
any time soon...
Bug: http://b/64362645
Bug: https://bugs.openjdk.java.net/browse/JDK-8179887
Test: builds
Change-Id: If86c86bfb966feea698ecd8cbb0fd34e356ef907
diff --git a/NativeCode.mk b/NativeCode.mk
index 9bfb88d..cedc69b 100644
--- a/NativeCode.mk
+++ b/NativeCode.mk
@@ -91,6 +91,9 @@
-Wno-constant-logical-operand \
-Wno-sometimes-uninitialized
+# TODO(http://b/64362645): remove when upstream replaces readdir_r with readdir.
+openjdk_cflags += -Wno-deprecated-declarations
+
core_test_files := \
luni/src/test/native/dalvik_system_JniTest.cpp \
luni/src/test/native/libcore_java_io_FileTest.cpp \