diff options
author | 2010-11-13 08:40:15 +0000 | |
---|---|---|
committer | 2010-11-13 08:40:15 +0000 | |
commit | de1470024fa11a3c80cd610c81e3e9d2554510a6 (patch) | |
tree | 40ec4ab2ba5ece9a8804354a0ded7a4efc74eab6 /net-libs/libnet/files | |
parent | add libsdl use deps; tidy (diff) | |
download | historical-de1470024fa11a3c80cd610c81e3e9d2554510a6.tar.gz historical-de1470024fa11a3c80cd610c81e3e9d2554510a6.tar.bz2 historical-de1470024fa11a3c80cd610c81e3e9d2554510a6.zip |
Fix compilation on Darwin
Package-Manager: portage-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) + { |