summaryrefslogtreecommitdiffstats
path: root/osdep/strnlen.h
diff options
context:
space:
mode:
Diffstat (limited to 'osdep/strnlen.h')
-rw-r--r--osdep/strnlen.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/osdep/strnlen.h b/osdep/strnlen.h
index 0a971d0ab0..e66932a89a 100644
--- a/osdep/strnlen.h
+++ b/osdep/strnlen.h
@@ -20,7 +20,9 @@
#ifndef MP_OSDEP_STRNLEN
#define MP_OSDEP_STRNLEN
-#ifdef __ANDROID__
+#include "config.h"
+
+#if HAVE_ANDROID
// strnlen is broken on current android ndk, see https://code.google.com/p/android/issues/detail?id=74741
#include "osdep/android/strnlen.h"
#define strnlen freebsd_strnlen