From: Sebastien Estienne Date: Tue, 25 Oct 2005 01:20:30 +0000 (+0000) Subject: * small hack for netbsd X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=8d83c6ca359d27f7c90ba874add798d064e58bc2;p=catta * small hack for netbsd git-svn-id: file:///home/lennart/svn/public/avahi/trunk@864 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-core/iface-pfroute.c b/avahi-core/iface-pfroute.c index 4822d59..a7ecdc9 100644 --- a/avahi-core/iface-pfroute.c +++ b/avahi-core/iface-pfroute.c @@ -31,6 +31,7 @@ #include #include +#include #include #include @@ -118,6 +119,11 @@ static void rtm_addr(struct rt_msghdr *rtm, AvahiInterfaceMonitor *m) int prefixlen = 0; struct sockaddr *sa =NULL; +#ifdef __NetBSD__ + if(((struct sockaddr *)cp)->sa_family == AF_UNSPEC) + ((struct sockaddr *)cp)->sa_family = AF_INET; +#endif + if(((struct sockaddr *)cp)->sa_family != AF_INET && ((struct sockaddr *)cp)->sa_family != AF_INET6) return;