#endif
/* Used when building with Android NDK's unified headers */
-#if defined(HOST_ANDROID)
+#if defined(HOST_ANDROID) && defined (ANDROID_UNIFIED_HEADERS)
#if __ANDROID_API__ < 21
typedef int32_t __mono_off32_t;
#endif /* !sendfile */
#endif /* __ANDROID_API__ < 21 */
-#endif /* HOST_ANDROID */
+#endif /* HOST_ANDROID && ANDROID_UNIFIED_HEADERS */
#endif /* __UTILS_MONO_COMPILER_H__*/