diff options
author | 2010-11-13 08:40:15 +0000 | |
---|---|---|
committer | 2010-11-13 08:40:15 +0000 | |
commit | 2c08f4ba0a621c824697ea8ceba508564cdb8ec4 (patch) | |
tree | d1e8855819cdff807b3bed272492383e82d422b3 /net-libs/libnet/files | |
parent | add libsdl use deps; tidy (diff) | |
download | gentoo-2-2c08f4ba0a621c824697ea8ceba508564cdb8ec4.tar.gz gentoo-2-2c08f4ba0a621c824697ea8ceba508564cdb8ec4.tar.bz2 gentoo-2-2c08f4ba0a621c824697ea8ceba508564cdb8ec4.zip |
Fix compilation on Darwin
(Portage version: 2.2.01.17168-prefix/cvs/Darwin powerpc)
Diffstat (limited to 'net-libs/libnet/files')
-rw-r--r-- | net-libs/libnet/files/libnet-1.1.5-darwin.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net-libs/libnet/files/libnet-1.1.5-darwin.patch b/net-libs/libnet/files/libnet-1.1.5-darwin.patch new file mode 100644 index 000000000000..5fa49a157a27 --- /dev/null +++ b/net-libs/libnet/files/libnet-1.1.5-darwin.patch @@ -0,0 +1,31 @@ +In file included from libnet_write.c:36: +/usr/include/netinet/udp.h:66: error: expected specifier-qualifier-list before 'u_short' +make: *** [libnet_write.lo] Error 1 + + +--- src/libnet_write.c ++++ src/libnet_write.c +@@ -32,9 +32,6 @@ + * + */ + +-#include <netinet/in.h> +-#include <netinet/udp.h> +- + #if (HAVE_CONFIG_H) + #include "../include/config.h" + #endif +@@ -47,6 +44,13 @@ + #include "Ntddndis.h" + #endif + ++#ifdef HAVE_SYS_TYPES_H ++#include <sys/types.h> /* for u_short in udphdr on Darwin */ ++#endif ++ ++#include <netinet/in.h> ++#include <netinet/udp.h> ++ + int + libnet_write(libnet_t *l) + { |