X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-autoipd%2Fmain.c;h=4a51dc378ef4fc559f55689b4ffa3352c10e400b;hb=7c966a2bfbadce6e924fc6dd2053e614b0449ea2;hp=814b99025be51ab7a900d77f3129977a203f50ed;hpb=9247d610deb3842f28ca81a9b9aad2f4ec2ff2f1;p=catta diff --git a/avahi-autoipd/main.c b/avahi-autoipd/main.c index 814b990..4a51dc3 100644 --- a/avahi-autoipd/main.c +++ b/avahi-autoipd/main.c @@ -62,6 +62,12 @@ #ifndef __linux__ #include + +/* Old versions of PCAP defined it as D_IN */ +#ifndef PCAP_D_IN +#define PCAP_D_IN D_IN +#endif + #endif #include @@ -77,6 +83,8 @@ #include "main.h" #include "iface.h" + + /* An implementation of RFC 3927 */ /* Constants from the RFC */ @@ -1042,7 +1050,7 @@ static int loop(int iface, uint32_t addr) { FD_ARP, FD_IFACE, FD_SIGNAL, - FD_MAX, + FD_MAX }; int fd = -1, ret = -1;