From 9530ccba0f8de171109fc65369d4a2502d630755 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Mon, 21 Oct 2019 22:22:28 +0300 Subject: [PATCH] SDL_endian.h: Use endian.h for OpenBSD. Patch from OpenBSD CVS, authored by Donovan Watteau. --- include/SDL_endian.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/SDL_endian.h b/include/SDL_endian.h index 9d9d0796c..1e6daae1c 100644 --- a/include/SDL_endian.h +++ b/include/SDL_endian.h @@ -42,7 +42,10 @@ #ifdef __linux__ #include #define SDL_BYTEORDER __BYTE_ORDER -#else /* __linux__ */ +#elif defined(__OpenBSD__) +#include +#define SDL_BYTEORDER BYTE_ORDER +#else #if defined(__hppa__) || \ defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \ (defined(__MIPS__) && defined(__MIPSEB__)) || \