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