$OpenBSD: patch-include_SDL_endian_h,v 1.1 2017/05/14 06:40:35 jsg Exp $

<endian.h> is simpler and more reliable.

Index: include/SDL_endian.h
--- include/SDL_endian.h.orig
+++ include/SDL_endian.h
@@ -42,7 +42,10 @@
 #ifdef __linux__
 #include <endian.h>
 #define SDL_BYTEORDER  __BYTE_ORDER
-#else /* __linux__ */
+#elif defined(__OpenBSD__)
+#include <endian.h>
+#define SDL_BYTEORDER  BYTE_ORDER
+#else
 #if defined(__hppa__) || \
     defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
     (defined(__MIPS__) && defined(__MISPEB__)) || \
