Prepare Mono for Android NDK with unified headers (#5680)
[mono.git] / support / libm / math_private.h
index b33cf60271a90b8a34c6e2893181d356379b0684..ddb615e15cdefe0ec8aab74cbbc89b8b74411d28 100644 (file)
 #define        _MATH_PRIVATE_H_
 
 #include <sys/types.h>
+
+#if HAVE_MACHINE_ENDIAN_H
 #include <machine/endian.h>
+#elif HAVE_SYS_ENDIAN_H && HOST_ANDROID
+/* Android unified headers don't have machine/endian.h */
+#include <sys/endian.h>
+#endif
 
 /*
  * The original fdlibm code used statements like: