]> granicus.if.org Git - strace/commitdiff
mips: fix build regression
authorMike Frysinger <vapier@gentoo.org>
Tue, 7 May 2013 14:50:20 +0000 (10:50 -0400)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 7 May 2013 14:59:44 +0000 (14:59 +0000)
The recent commit (2690fadc8b35190dddd29274a7405bac13adc469) shuffled
the mips headers around causing it to check the ABI defines before it
included the header which set those up.  Now all mips builds fail with:
In file included from count.c:36:0:
defs.h:48:4: error: #error Unsupported _MIPS_SIM

* defs.h [MIPS]: Move sgidefs.h above _MIPS_SIM check.

defs.h

diff --git a/defs.h b/defs.h
index 5f1905ef1effe833532d54310cf0418fe6e702b8..291b8fb279fa7b2221e2fde7bf2fcca01d537b7d 100644 (file)
--- a/defs.h
+++ b/defs.h
@@ -38,6 +38,7 @@
 #endif
 
 #ifdef MIPS
+# include <sgidefs.h>
 # if _MIPS_SIM == _MIPS_SIM_ABI64
 #  define LINUX_MIPSN64
 # elif _MIPS_SIM == _MIPS_SIM_NABI32
@@ -47,7 +48,6 @@
 # else
 #  error Unsupported _MIPS_SIM
 # endif
-# include <sgidefs.h>
 #endif
 
 #include <features.h>