summaryrefslogtreecommitdiff
path: root/net/avahi/patches/patch-aa
blob: 6bf4a24b452b0ec8b096d468f89d1e4cad064fea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-aa,v 1.3 2013/04/21 00:58:47 rodent Exp $

Add NetBSD support.

--- avahi-core/iface-pfroute.c.orig	2010-06-26 00:14:35.000000000 +0000
+++ avahi-core/iface-pfroute.c
@@ -46,6 +46,13 @@
 #include "iface-pfroute.h"
 #include "util.h"
 
+#ifdef __NetBSD__
+#define lifreq if_laddrreq
+#define lifr_addr iflr_addr
+#define lifr_flags iflr_flags
+#define SIOCGLIFFLAGS SIOCGIFFLAGS
+#endif
+
 static int bitcount (unsigned int n)
 {
   int count=0 ;