summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli2009-04-13 13:17:14 +0000
committerFlorian Fainelli2009-04-13 13:17:14 +0000
commit263d055aeb61bf3cdfe94694a041b23f1584a538 (patch)
tree508549f0d918b811863a7f1efce85dd24b9e869a
parent0b51019e29ed472cf05058a27a2058d5deee74ce (diff)
downloadarchive-263d055aeb61bf3cdfe94694a041b23f1584a538.tar.gz
[package] fix hping3 compilation failure on armeb (#4933)
SVN-Revision: 15226
-rw-r--r--net/hping3/patches/101-endianness.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/net/hping3/patches/101-endianness.patch b/net/hping3/patches/101-endianness.patch
index 9bc710c2d7..49249a0a43 100644
--- a/net/hping3/patches/101-endianness.patch
+++ b/net/hping3/patches/101-endianness.patch
@@ -34,3 +34,19 @@
__u8 th_off:4, /* data offset */
th_x2:4; /* (unused) */
#else
+diff -urN hping3-20051105/bytesex.h hping3-20051105.new/bytesex.h
+--- hping3-20051105/bytesex.h 2003-08-31 19:23:48.000000000 +0200
++++ hping3-20051105.new/bytesex.h 2009-04-13 15:14:52.000000000 +0200
+@@ -9,9 +9,11 @@
+
+ #if defined(__i386__) \
+ || defined(__alpha__) \
++ || (defined(__arm__) && (defined(ARMEL) || defined(__ARMEL__))) \
+ || (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__)))
+ #define BYTE_ORDER_LITTLE_ENDIAN
+-#elif defined(__mc68000__) \
++#elif defined(__mc68000__) \
++ || (defined(__arm__) && (defined(ARMEB) || defined(__ARMEB__))) \
+ || defined (__sparc__) \
+ || defined (__sparc) \
+ || defined (__PPC__) \