diff options
author | gahr <gahr@FreeBSD.org> | 2008-06-24 21:35:56 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2008-06-24 21:35:56 +0800 |
commit | bdec2dedb2e8dc438cf4ee488a5f78044485ff37 (patch) | |
tree | f2aca369ed3d1e9d5fe8e6a182dd753f7a7b8c75 /net/p5-Net-ARP | |
parent | b22c0f41b7fb606a1b4d8130677772a868bb6732 (diff) | |
download | freebsd-ports-gnome-bdec2dedb2e8dc438cf4ee488a5f78044485ff37.tar.gz freebsd-ports-gnome-bdec2dedb2e8dc438cf4ee488a5f78044485ff37.tar.zst freebsd-ports-gnome-bdec2dedb2e8dc438cf4ee488a5f78044485ff37.zip |
- Unbreak
- Chase warnings
Diffstat (limited to 'net/p5-Net-ARP')
-rw-r--r-- | net/p5-Net-ARP/Makefile | 8 | ||||
-rw-r--r-- | net/p5-Net-ARP/files/patch-arp.h | 13 | ||||
-rw-r--r-- | net/p5-Net-ARP/files/patch-arp_lookup_bsd.c | 11 | ||||
-rw-r--r-- | net/p5-Net-ARP/files/patch-ppport.h | 10 |
4 files changed, 28 insertions, 14 deletions
diff --git a/net/p5-Net-ARP/Makefile b/net/p5-Net-ARP/Makefile index 83e1ebc76fe6..25a330e971ad 100644 --- a/net/p5-Net-ARP/Makefile +++ b/net/p5-Net-ARP/Makefile @@ -21,10 +21,4 @@ WRKSRC= ${WRKDIR}/${PORTNAME} MAN3= Net::ARP.3 -.include <bsd.port.pre.mk> - -.if ${ARCH} == "amd64" -BROKEN= Does not compile on amd64 -.endif - -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/net/p5-Net-ARP/files/patch-arp.h b/net/p5-Net-ARP/files/patch-arp.h index a3df58229a53..312215782d18 100644 --- a/net/p5-Net-ARP/files/patch-arp.h +++ b/net/p5-Net-ARP/files/patch-arp.h @@ -1,9 +1,8 @@ ---- arp.h.orig 2008-01-06 21:14:49.000000000 +0800 -+++ arp.h 2008-01-06 21:15:11.000000000 +0800 -@@ -55,4 +55,6 @@ +--- arp.h.orig 2007-08-16 09:38:44.000000000 +0200 ++++ arp.h 2008-06-24 14:47:24.000000000 +0200 +@@ -54,5 +54,3 @@ + u_char dest_add[ETH_ALEN]; // dest mac u_char dest_ip[IP_ALEN]; // dest ip }; - -+#ifndef __i386__ - extern struct ether_addr *ether_aton (__const char *__asc) __THROW; -+#endif +- +-extern struct ether_addr *ether_aton (__const char *__asc) __THROW; diff --git a/net/p5-Net-ARP/files/patch-arp_lookup_bsd.c b/net/p5-Net-ARP/files/patch-arp_lookup_bsd.c new file mode 100644 index 000000000000..3e905ecb3281 --- /dev/null +++ b/net/p5-Net-ARP/files/patch-arp_lookup_bsd.c @@ -0,0 +1,11 @@ +--- arp_lookup_bsd.c.orig 2006-09-20 11:19:00.000000000 +0200 ++++ arp_lookup_bsd.c 2008-06-24 14:57:10.000000000 +0200 +@@ -18,6 +18,8 @@ + See the GNU General Public License for more details. + */ + ++#include <string.h> ++#include <stdlib.h> + #include <sys/file.h> + #include <sys/socket.h> + #include <net/if_dl.h> diff --git a/net/p5-Net-ARP/files/patch-ppport.h b/net/p5-Net-ARP/files/patch-ppport.h new file mode 100644 index 000000000000..b4e12507d8e8 --- /dev/null +++ b/net/p5-Net-ARP/files/patch-ppport.h @@ -0,0 +1,10 @@ +--- ppport.h.orig 2008-06-24 12:35:16.000000000 +0000 ++++ ppport.h 2008-06-24 12:35:40.000000000 +0000 +@@ -220,6 +220,7 @@ + /* Replace: 0 */ + #endif + ++#undef PERL_UNUSED_DECL + #ifdef HASATTRIBUTE + # if (defined(__GNUC__) && defined(__cplusplus)) || defined(__INTEL_COMPILER) + # define PERL_UNUSED_DECL |