Dash:
[t2.git] / package / network / hping / hping_bytesex_h.patch
blobf3ffd34400927256c51699e1e8b9fc784d574c60
1 --- hping2-rc3/bytesex.h.orig 2006-10-27 16:33:15.000000000 -0700
2 +++ hping2-rc3/bytesex.h 2006-10-27 16:38:58.000000000 -0700
3 @@ -7,7 +7,7 @@
4 #ifndef ARS_BYTESEX_H
5 #define ARS_BYTESEX_H
7 -#if defined(__i386__) \
8 +#if defined(__i386__) || __BYTE_ORDER == __LITTLE_ENDIAN \
9 || defined(__alpha__) \
10 || (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__)))
11 #define BYTE_ORDER_LITTLE_ENDIAN
12 @@ -15,7 +15,7 @@
13 || defined (__sparc__) \
14 || defined (__sparc) \
15 || defined (__PPC__) \
16 - || defined (__BIG_ENDIAN__) \
17 + || defined (__BIG_ENDIAN__) || __BYTE_ORDER == __BIG_ENDIAN \
18 || (defined(__mips__) && (defined(MIPSEB) || defined (__MIPSEB__)))
19 #define BYTE_ORDER_BIG_ENDIAN
20 #else