Work around readdir_r warnings until we upstream a fix.

Bug: http://b/32678321 (deprecate readdir_r)
Bug: http://b/72326431 (upstream a proper fix to wpa_supplicant)
Test: builds, boots
Change-Id: Idbf70e2a4540f8219dee393677bd78f4d3a65096
diff --git a/hostapd/Android.mk b/hostapd/Android.mk
index bbc9c0b..a9ded3c 100644
--- a/hostapd/Android.mk
+++ b/hostapd/Android.mk
@@ -26,6 +26,9 @@
 
 L_CFLAGS += -Wall -Werror
 
+# TODO: move off readdir_r upstream, pull fix back (http://b/72326431).
+L_CFLAGS += -Wno-error-deprecated-declarations
+
 # Disable unused parameter warnings
 L_CFLAGS += -Wno-unused-parameter
 
diff --git a/wpa_supplicant/Android.mk b/wpa_supplicant/Android.mk
index 116270f..2d87f75 100644
--- a/wpa_supplicant/Android.mk
+++ b/wpa_supplicant/Android.mk
@@ -37,6 +37,9 @@
 # Disable sign compare warnings
 L_CFLAGS += -Wno-sign-compare
 
+# TODO: move off readdir_r upstream, pull fix back (http://b/72326431).
+L_CFLAGS += -Wno-error-deprecated-declarations
+
 # Disable unused function warnings
 L_CFLAGS += -Wno-unused-function