Merge "-D__ANDROID_NDK__ for SDK builds."
diff --git a/core/binary.mk b/core/binary.mk
index 4709e8e..e916164 100644
--- a/core/binary.mk
+++ b/core/binary.mk
@@ -119,6 +119,8 @@
     $(error $(LOCAL_PATH): LOCAL_SDK_VERSION cannot be used in host module)
   endif
 
+  my_cflags += -D__ANDROID_NDK__
+
   # Make sure we've built the NDK.
   my_additional_dependencies += $(SOONG_OUT_DIR)/ndk_base.timestamp