summaryrefslogtreecommitdiffstats
path: root/multiarch-dispatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'multiarch-dispatch.h')
-rw-r--r--multiarch-dispatch.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/multiarch-dispatch.h b/multiarch-dispatch.h
index 8d9ac5d..e253410 100644
--- a/multiarch-dispatch.h
+++ b/multiarch-dispatch.h
@@ -11,6 +11,10 @@
#undef sparc
#define _multiarch_defined_sparc
#endif
+#ifdef mips
+#undef mips
+#define _multiarch_defined_mips
+#endif
/* Dispatch arch dependent header */
#if defined(__linux__)
@@ -37,6 +41,12 @@
#include _MULTIARCH_MAKE_HEADER(ia64,_MULTIARCH_HEADER)
#elif defined(__alpha__)
#include _MULTIARCH_MAKE_HEADER(alpha,_MULTIARCH_HEADER)
+#elif defined(__mips__)
+#if defined(__BIG_ENDIAN__)
+#include _MULTIARCH_MAKE_HEADER(mips,_MULTIARCH_HEADER)
+#else
+#include _MULTIARCH_MAKE_HEADER(mipsel,_MULTIARCH_HEADER)
+#endif
#else
#error "Unknown architecture, please submit bug report"
#endif
@@ -57,3 +67,7 @@
#undef _multiarch_defined_sparc
#define sparc 1
#endif
+#ifdef _multiarch_defined_mips
+#undef _multiarch_defined_mips
+#define mips 1
+#endif