ports/net/hping3/files/patch-bytesex.h
Eugene Grosbein 26f0460098 New port: net/hping3
hping3 is a command-line oriented TCP/IP packet assembler/analyzer.

This port is significantly modified version of already existing
older port net/hping but hping3 has more useful features like
IP options LSRR/SSRR etc.

net/hping3 does not conflict with net/hping due to different names
of installed files and both utilities may be installed same time.
2019-07-28 15:15:04 +00:00

23 lines
511 B
C

--- bytesex.h.orig 2003-08-31 17:23:48 UTC
+++ bytesex.h
@@ -7,6 +7,7 @@
#ifndef ARS_BYTESEX_H
#define ARS_BYTESEX_H
+#if 0
#if defined(__i386__) \
|| defined(__alpha__) \
|| (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__)))
@@ -21,5 +22,12 @@
#else
# error can not find the byte order for this architecture, fix bytesex.h
#endif
+#endif
+
+#if BYTE_ORDER == LITTLE_ENDIAN
+#define BYTE_ORDER_LITTLE_ENDIAN
+#else
+#define BYTE_ORDER_BIG_ENDIAN
+#endif
#endif /* ARS_BYTESEX_H */