1From dbbf8110ed3fd2cbac20a8ec2ac769e13c67bab1 Mon Sep 17 00:00:00 2001 2From: Ross Burton <ross.burton@arm.com> 3Date: Tue, 16 Jan 2024 18:22:38 +0000 4Subject: [PATCH 2/2] byte order 5 6endian.h on musl/mips can't be included in __ASSEMBLER__ mode, 7so use the __BYTE_ORDER__ symbol instead. 8 9Upstream-Status: Pending 10Signed-off-by: Ross Burton <ross.burton@arm.com> 11--- 12 src/mips/getcontext.S | 3 +-- 13 1 file changed, 1 insertion(+), 2 deletions(-) 14 15diff --git a/src/mips/getcontext.S b/src/mips/getcontext.S 16index d1dbd579..de9b6818 100644 17--- a/src/mips/getcontext.S 18+++ b/src/mips/getcontext.S 19@@ -24,12 +24,11 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 21 22 #include "offsets.h" 23-#include <endian.h> 24 25 .text 26 27 #if _MIPS_SIM == _ABIO32 28-# if __BYTE_ORDER == __BIG_ENDIAN 29+# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ 30 # define OFFSET 4 31 # else 32 # define OFFSET 0 33-- 342.34.1 35 36