From 6c7d0fa38e4fd35913de4cb2dc902cd25df41ed0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Tue, 8 May 2001 20:46:30 +0000 Subject: [PATCH] endian fix Changed files: rdesktop-endian.patch -> 1.1 --- rdesktop-endian.patch | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 rdesktop-endian.patch diff --git a/rdesktop-endian.patch b/rdesktop-endian.patch new file mode 100644 index 0000000..b5f5dbf --- /dev/null +++ b/rdesktop-endian.patch @@ -0,0 +1,33 @@ +diff -urN rdesktop-1.0.0.org/rdesktop.h rdesktop-1.0.0/rdesktop.h +--- rdesktop-1.0.0.org/rdesktop.h Tue May 8 22:40:12 2001 ++++ rdesktop-1.0.0/rdesktop.h Tue May 8 22:44:44 2001 +@@ -31,6 +31,7 @@ + + #include + #include ++#include + + #define VERSION "1.0.0-pl19-6" + +@@ -38,16 +39,13 @@ + /* + * check endianess + */ +- +-#if defined(__i386__) || defined(__alpha__) || defined(__vax__) || \ +- defined(_AIX) +-#define L_ENDIAN +-#elif defined(__sparc) || defined(__hppa) || defined(__mips) || \ +- defined(__PPC__) || defined(__m68k__) +-#define B_ENDIAN ++#if __BYTE_ORDER == __LITTLE_ENDIAN ++# define L_ENDIAN ++#elif __BYTE_ORDER == __BIG_ENDIAN ++# define B_ENDIAN + #else + #error Unknown endianness. Edit rdesktop.h. +-#endif ++#endif + + /* + * check if we need to align data -- 2.44.0