Index: linux_syscall_support.h |
diff --git a/linux_syscall_support.h b/linux_syscall_support.h |
index a143fc2835e641b0725225d9f1a7f690a0183368..8a42c1c8687b2af252811c28581cabfd89a3a3ae 100644 |
--- a/linux_syscall_support.h |
+++ b/linux_syscall_support.h |
@@ -118,9 +118,16 @@ extern "C" { |
#ifdef __mips__ |
/* Include definitions of the ABI currently in use. */ |
+#ifdef __ANDROID__ |
+/* Android doesn't have sgidefs.h, but does have asm/sgidefs.h, |
+ * which has the definitions we need. |
+ */ |
+#include <asm/sgidefs.h> |
+#else |
#include <sgidefs.h> |
#endif |
#endif |
+#endif |
/* The Android NDK's <sys/stat.h> #defines these macros as aliases |
* to their non-64 counterparts. To avoid naming conflict, remove them. */ |