3296beb
--- SDL-1.2.10/include/SDL_endian.h.byteorder	2006-05-01 10:02:59.000000000 +0200
3296beb
+++ SDL-1.2.10/include/SDL_endian.h	2006-05-19 11:53:07.000000000 +0200
3296beb
@@ -32,6 +32,10 @@
3296beb
 #define SDL_BIG_ENDIAN	4321
a8d2ab6
 
3296beb
 #ifndef SDL_BYTEORDER	/* Not defined in SDL_config.h? */
a8d2ab6
+#ifdef __linux__
a8d2ab6
+#include <endian.h>
a8d2ab6
+#define SDL_BYTEORDER  __BYTE_ORDER
3296beb
+#else /* __linux __ */
3296beb
 #if defined(__hppa__) || \
3296beb
     defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
3296beb
     (defined(__MIPS__) && defined(__MISPEB__)) || \
3296beb
@@ -41,6 +45,7 @@
3296beb
 #else
3296beb
 #define SDL_BYTEORDER	SDL_LIL_ENDIAN
a8d2ab6
 #endif
3296beb
+#endif /* __linux __ */
a8d2ab6
 #endif /* !SDL_BYTEORDER */
a8d2ab6
 
a8d2ab6