summaryrefslogtreecommitdiff
path: root/net/hping3/files/patch-bytesex.h
blob: 5ffbc43b9fef6f5cf3f774dec5ad1c98def9a3e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- 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 */