diff options
author | joerg <joerg@pkgsrc.org> | 2015-02-23 18:27:09 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2015-02-23 18:27:09 +0000 |
commit | c7192175016c1f526b2bbadf5537cba84bc35898 (patch) | |
tree | f5335dde70995d0ce8b601dd17c702ef5674e42a /net/hping3 | |
parent | f1f3a2d9249f6c7e866bd76ef7f745114e915577 (diff) | |
download | pkgsrc-c7192175016c1f526b2bbadf5537cba84bc35898.tar.gz |
Use system endian macros instead of platform lists.
Diffstat (limited to 'net/hping3')
-rw-r--r-- | net/hping3/distinfo | 4 | ||||
-rw-r--r-- | net/hping3/patches/patch-ac | 37 |
2 files changed, 31 insertions, 10 deletions
diff --git a/net/hping3/distinfo b/net/hping3/distinfo index 0848630a565..c244596b6bc 100644 --- a/net/hping3/distinfo +++ b/net/hping3/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.2 2013/10/20 18:00:57 joerg Exp $ +$NetBSD: distinfo,v 1.3 2015/02/23 18:27:09 joerg Exp $ SHA1 (hping3-alpha-2.tar.gz) = 4115f74f234730e1bd6470f4ffb0f30e3759e56d RMD160 (hping3-alpha-2.tar.gz) = a1e43a2e4be64657dd7aa49a8211692d6b1673c3 Size (hping3-alpha-2.tar.gz) = 573396 bytes SHA1 (patch-aa) = 25c2d447d8cc0374a27fa3de4e8bc0c1cfa2ce6c SHA1 (patch-ab) = 46aa447ee7efa477a07fe46119524de8b93708f7 -SHA1 (patch-ac) = cef340ccd49c676093d920797c65ce2ece7eb577 +SHA1 (patch-ac) = b0f96f21b8cac82a835dc8d2814eb6a39b132355 diff --git a/net/hping3/patches/patch-ac b/net/hping3/patches/patch-ac index f4d9f6515cf..78f996256ee 100644 --- a/net/hping3/patches/patch-ac +++ b/net/hping3/patches/patch-ac @@ -1,12 +1,33 @@ -$NetBSD: patch-ac,v 1.1.1.1 2010/03/14 18:37:58 pettai Exp $ +$NetBSD: patch-ac,v 1.2 2015/02/23 18:27:09 joerg Exp $ ---- bytesex.h.orig 2010-01-26 22:26:08.000000000 +0100 -+++ bytesex.h 2010-01-26 22:26:39.000000000 +0100 -@@ -8,6 +8,7 @@ +--- bytesex.h.orig 2003-08-31 17:23:48.000000000 +0000 ++++ bytesex.h +@@ -7,19 +7,18 @@ + #ifndef ARS_BYTESEX_H #define ARS_BYTESEX_H - #if defined(__i386__) \ -+ || defined(__amd64__) \ - || defined(__alpha__) \ - || (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__))) +-#if defined(__i386__) \ +- || defined(__alpha__) \ +- || (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__))) ++#include <sys/endian.h> ++ ++#if defined(_BYTE_ORDER) && defined(_LITTLE_ENDIAN) && (_BYTE_ORDER == _LITTLE_ENDIAN) ++#define BYTE_ORDER_LITTLE_ENDIAN ++#elif defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && (__BYTE_ORDER == _LITTLE_ENDIAN) #define BYTE_ORDER_LITTLE_ENDIAN +-#elif defined(__mc68000__) \ +- || defined (__sparc__) \ +- || defined (__sparc) \ +- || defined (__PPC__) \ +- || defined (__BIG_ENDIAN__) \ +- || (defined(__mips__) && (defined(MIPSEB) || defined (__MIPSEB__))) ++#elif defined(_BYTE_ORDER) && defined(_BIG_ENDIAN) && (_BYTE_ORDER == _BIG_ENDIAN) ++#define BYTE_ORDER_BIG_ENDIAN ++#elif defined(__BYTE_ORDER) && defined(__BIG_ENDIAN) && (__BYTE_ORDER == _BIG_ENDIAN) + #define BYTE_ORDER_BIG_ENDIAN + #else +-# error can not find the byte order for this architecture, fix bytesex.h ++#error can not find the byte order for this architecture, fix bytesex.h + #endif + + #endif /* ARS_BYTESEX_H */ |