]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Newer Illumos defines AF_PACKET which confuses us, so punt it.
authorRoy Marples <roy@marples.name>
Tue, 17 Jan 2017 12:20:15 +0000 (12:20 +0000)
committerRoy Marples <roy@marples.name>
Tue, 17 Jan 2017 12:20:15 +0000 (12:20 +0000)
if.c

diff --git a/if.c b/if.c
index ac221f71439d30c1446dc19f1468f3aec71e4a02..e5564097d4277cfcec6333b23e3f619cf3fddfda 100644 (file)
--- a/if.c
+++ b/if.c
@@ -39,6 +39,7 @@
 #  include <net/if_dl.h>
 #  include <net/if_types.h>
 #  include <netinet/in_var.h>
+#  undef AF_PACKET     /* Newer Illumos defines this */
 #endif
 #ifdef AF_PACKET
 #  include <netpacket/packet.h>