/[gentoo-x86]/net-libs/libnet/files/1.0.2a-endian.patch
Gentoo

Contents of /net-libs/libnet/files/1.0.2a-endian.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Apr 28 16:59:10 2012 UTC (2 years, 7 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Apply endian patch by Christopher Friedt (bug #275885). Clean up patch. Respect CFLAGS.

(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)

1 --- a/include/libnet.h
2 +++ b/include/libnet.h
3 @@ -32,6 +32,17 @@
4 #ifndef __LIBNET_H
5 #define __LIBNET_H
6
7 +#include <endian.h>
8 +#if __BYTE_ORDER == __LITTLE_ENDIAN
9 +# define LIBNET_LIL_ENDIAN 1
10 +#else
11 +# if __BYTE_ORDER == __BIG_ENDIAN
12 +# define LIBNET_BIG_ENDIAN 1
13 +# else
14 +# error unrecognized __BYTE_ORDER
15 +# endif
16 +#endif
17 +
18 #include <stdio.h>
19 #include <string.h>
20 #include <unistd.h>

  ViewVC Help
Powered by ViewVC 1.1.20