]> git.pld-linux.org Git - packages/rdesktop.git/commitdiff
endian fix
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 8 May 2001 20:46:30 +0000 (20:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rdesktop-endian.patch -> 1.1

rdesktop-endian.patch [new file with mode: 0644]

diff --git a/rdesktop-endian.patch b/rdesktop-endian.patch
new file mode 100644 (file)
index 0000000..b5f5dbf
--- /dev/null
@@ -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 <stdio.h>
+ #include <string.h>
++#include <endian.h>
+ #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
This page took 0.058136 seconds and 4 git commands to generate.