From: Mike Frysinger Date: Tue, 7 May 2013 14:50:20 +0000 (-0400) Subject: mips: fix build regression X-Git-Tag: v4.8~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3883ab84388efe01962e4164911508af24d3f2f5;p=strace mips: fix build regression 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. --- diff --git a/defs.h b/defs.h index 5f1905ef..291b8fb2 100644 --- a/defs.h +++ b/defs.h @@ -38,6 +38,7 @@ #endif #ifdef MIPS +# include # 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 #endif #include