pkgsrc/net/hping3/patches/patch-libpcap__stuff.c

16 lines
380 B
C

$NetBSD: patch-libpcap__stuff.c,v 1.1 2017/06/14 12:17:30 jperkin Exp $
Fix include ordering to avoid redefined bpf_* symbols.
--- libpcap_stuff.c.orig 2004-04-09 23:38:56.000000000 +0000
+++ libpcap_stuff.c
@@ -16,8 +16,8 @@
#include <string.h>
#include <stdlib.h>
#include <sys/ioctl.h>
-#include <pcap.h>
#include <net/bpf.h>
+#include <pcap.h>
#include "globals.h"