Parent Directory
|
Revision Log
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 |