fix build on old freebsd, patch from zmi (Closes #158)
authorLennart Poettering <lennart@poettering.net>
Sun, 19 Aug 2007 23:45:30 +0000 (23:45 +0000)
committerLennart Poettering <lennart@poettering.net>
Sun, 19 Aug 2007 23:45:30 +0000 (23:45 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1523 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-autoipd/main.c

index 27c5a29..4a51dc3 100644 (file)
 
 #ifndef __linux__
 #include <pcap.h>
+
+/* Old versions of PCAP defined it as D_IN */
+#ifndef PCAP_D_IN
+#define PCAP_D_IN D_IN
+#endif
+
 #endif
 
 #include <avahi-common/malloc.h>
@@ -77,6 +83,8 @@
 #include "main.h"
 #include "iface.h"
 
+
+
 /* An implementation of RFC 3927 */
 
 /* Constants from the RFC */