1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

- if net/libpcap from ports is install, net/arping bombs b/c of errors in pcap.h

fix this.  Versions of this patch are committed upstream.

- Bump PORTREVISION

PR:             ports/151263
Submitted by:   Lucius Windschuh <lwindschuh@gmail.com>
Approved by:    maintainer timeout (gavin ; 67 days)
This commit is contained in:
Philip M. Gollucci 2010-12-15 02:43:14 +00:00
parent 587c3942a6
commit b09780bd2e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=266317
2 changed files with 23 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= arping
PORTVERSION= 2.09
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.habets.pp.se/synscan/files/

View File

@ -0,0 +1,22 @@
--- ./src/arping.c.orig 2010-12-15 02:40:26.572881702 +0000
+++ ./src/arping.c 2010-12-15 02:41:01.891883112 +0000
@@ -75,15 +75,15 @@
#include <libnet.h>
#endif
+#if HAVE_NET_BPF_H
+#include <net/bpf.h>
+#endif
+
#if HAVE_WIN32_LIBNET_H
#include <win32/libnet.h>
#endif
#include <pcap.h>
-#if HAVE_NET_BPF_H
-#include <net/bpf.h>
-#endif
-
#ifndef ETH_ALEN
#define ETH_ALEN 6
#endif