summaryrefslogtreecommitdiffstats
path: root/avahi-core/iface-pfroute.c
diff options
context:
space:
mode:
authorSebastien Estienne <sebastien.estienne@gmail.com>2005-10-28 22:30:56 +0000
committerSebastien Estienne <sebastien.estienne@gmail.com>2005-10-28 22:30:56 +0000
commiteee711106f721fc73a1ef50348984b7a1d9cb595 (patch)
treeb4f05351d046fec9bf454c381b5fdb4018cf9e4f /avahi-core/iface-pfroute.c
parent48f053dc87279e2e3cad561db5b744cbcbf32387 (diff)
* many trivial fix to make avahi compile on OpenBSD
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@903 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/iface-pfroute.c')
-rw-r--r--avahi-core/iface-pfroute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/avahi-core/iface-pfroute.c b/avahi-core/iface-pfroute.c
index a7ecdc9..c573075 100644
--- a/avahi-core/iface-pfroute.c
+++ b/avahi-core/iface-pfroute.c
@@ -119,7 +119,7 @@ static void rtm_addr(struct rt_msghdr *rtm, AvahiInterfaceMonitor *m)
int prefixlen = 0;
struct sockaddr *sa =NULL;
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__OpenBSD__)
if(((struct sockaddr *)cp)->sa_family == AF_UNSPEC)
((struct sockaddr *)cp)->sa_family = AF_INET;
#endif