diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-12-03 16:17:22 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-12-03 16:17:22 +0000 |
commit | 4cd2370bed609c118b6edfde5d3f116e5c35b897 (patch) | |
tree | ec58f2c41f49754e41521d5ebc9dce4597ddd0a5 /net-libs/libnet/files/libnet-1.0.2a-endian.patch | |
parent | f443475c824b4b5c086e6d040961cb35ad81bc60 (diff) |
gentoo resync : 03.12.2017
Diffstat (limited to 'net-libs/libnet/files/libnet-1.0.2a-endian.patch')
-rw-r--r-- | net-libs/libnet/files/libnet-1.0.2a-endian.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net-libs/libnet/files/libnet-1.0.2a-endian.patch b/net-libs/libnet/files/libnet-1.0.2a-endian.patch new file mode 100644 index 000000000000..aad0bacb2f2e --- /dev/null +++ b/net-libs/libnet/files/libnet-1.0.2a-endian.patch @@ -0,0 +1,20 @@ +--- a/include/libnet.h ++++ b/include/libnet.h +@@ -32,6 +32,17 @@ + #ifndef __LIBNET_H + #define __LIBNET_H + ++#include <endian.h> ++#if __BYTE_ORDER == __LITTLE_ENDIAN ++# define LIBNET_LIL_ENDIAN 1 ++#else ++# if __BYTE_ORDER == __BIG_ENDIAN ++# define LIBNET_BIG_ENDIAN 1 ++# else ++# error unrecognized __BYTE_ORDER ++# endif ++#endif ++ + #include <stdio.h> + #include <string.h> + #include <unistd.h> |