summaryrefslogtreecommitdiff
path: root/net/libpcap/patches/patch-fad-getad.c
blob: 29466fec925d5e505afcaed7955fdbd3127efc1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$NetBSD: patch-fad-getad.c,v 1.1 2019/07/04 07:17:25 adam Exp $

Re-order includes to avoid bpf_program re-definition.

--- fad-getad.c.orig	2014-11-13 08:58:52.000000000 +0000
+++ fad-getad.c
@@ -49,12 +49,6 @@
 #include <string.h>
 #include <ifaddrs.h>
 
-#include "pcap-int.h"
-
-#ifdef HAVE_OS_PROTO_H
-#include "os-proto.h"
-#endif
-
 /*
  * We don't do this on Solaris 11 and later, as it appears there aren't
  * any AF_PACKET addresses on interfaces, so we don't need this, and
@@ -78,6 +72,12 @@
 # endif /* HAVE_NETPACKET_PACKET_H */
 #endif /* (defined(linux) || defined(__Lynx__)) && defined(AF_PACKET) */
 
+#include "pcap-int.h"
+
+#ifdef HAVE_OS_PROTO_H
+#include "os-proto.h"
+#endif
+
 /*
  * This is fun.
  *