From 3883ab84388efe01962e4164911508af24d3f2f5 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 7 May 2013 10:50:20 -0400 Subject: [PATCH] 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. --- defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0