ports/net/arping/files/patch-src__arping.c
Philip M. Gollucci b09780bd2e - 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)
2010-12-15 02:43:14 +00:00

22 lines
397 B
C

--- ./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