aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hping3/hping3-bytesex.patch
blob: 8d5eaa50721bbbb94d88a6509fecc9294e29f295 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/bytesex.h.orig	2003-08-31 19:23:48.000000000 +0200
+++ b/bytesex.h	2009-05-25 09:40:31.000000000 +0200
@@ -9,13 +9,19 @@
 
 #if 	defined(__i386__) \
 	|| defined(__alpha__) \
+	|| defined(__x86_64__) \
+	|| defined(__ia64__) \
+	|| defined(__sh__) \
+	|| (defined(__arm__) && defined(__ARMEL__)) || defined(__AARCH64EL__) \
 	|| (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__)))
 #define BYTE_ORDER_LITTLE_ENDIAN
 #elif 	defined(__mc68000__) \
+	|| defined (__s390__) \
 	|| defined (__sparc__) \
 	|| defined (__sparc) \
 	|| defined (__PPC__) \
 	|| defined (__BIG_ENDIAN__) \
+	|| (defined(__arm__) && defined(__ARMEB__)) || defined(__AARCH64EB__)  \
 	|| (defined(__mips__) && (defined(MIPSEB) || defined (__MIPSEB__)))
 #define BYTE_ORDER_BIG_ENDIAN
 #else