From eee711106f721fc73a1ef50348984b7a1d9cb595 Mon Sep 17 00:00:00 2001 From: Sebastien Estienne Date: Fri, 28 Oct 2005 22:30:56 +0000 Subject: [PATCH] * 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 --- avahi-common/address.c | 2 +- avahi-core/addr-util.c | 2 +- avahi-core/avahi-reflector.c | 4 +++- avahi-core/avahi-test.c | 8 +++++--- avahi-core/conformance-test.c | 8 +++++--- avahi-core/dns-test.c | 1 + avahi-core/dns.c | 4 ++-- avahi-core/entry.c | 9 ++++++--- avahi-core/iface-pfroute.c | 2 +- avahi-core/iface.c | 4 +++- avahi-core/iface.h | 12 +++++++++++- avahi-core/socket.c | 9 ++++++--- bootstrap.sh | 2 +- 13 files changed, 46 insertions(+), 21 deletions(-) diff --git a/avahi-common/address.c b/avahi-common/address.c index 640aa06..c8ddf7f 100644 --- a/avahi-common/address.c +++ b/avahi-common/address.c @@ -23,8 +23,8 @@ #include #endif -#include #include +#include #include #include #include diff --git a/avahi-core/addr-util.c b/avahi-core/addr-util.c index 7b9bb03..9e2d1e9 100644 --- a/avahi-core/addr-util.c +++ b/avahi-core/addr-util.c @@ -23,8 +23,8 @@ #include #endif -#include #include +#include #include #include #include diff --git a/avahi-core/avahi-reflector.c b/avahi-core/avahi-reflector.c index a383965..df5539f 100644 --- a/avahi-core/avahi-reflector.c +++ b/avahi-core/avahi-reflector.c @@ -23,10 +23,12 @@ #include #endif +#include + +#include #include #include #include -#include #include #include diff --git a/avahi-core/avahi-test.c b/avahi-core/avahi-test.c index 9123bfe..f540cf4 100644 --- a/avahi-core/avahi-test.c +++ b/avahi-core/avahi-test.c @@ -23,13 +23,15 @@ #include #endif -#include -#include -#include #include #include #include +#include +#include +#include +#include + #include #include #include diff --git a/avahi-core/conformance-test.c b/avahi-core/conformance-test.c index 6873b5c..3c4ce6e 100644 --- a/avahi-core/conformance-test.c +++ b/avahi-core/conformance-test.c @@ -23,14 +23,16 @@ #include #endif -#include -#include -#include #include #include #include #include +#include +#include +#include +#include + #include #include #include diff --git a/avahi-core/dns-test.c b/avahi-core/dns-test.c index 8a7586c..ae2343d 100644 --- a/avahi-core/dns-test.c +++ b/avahi-core/dns-test.c @@ -24,6 +24,7 @@ #endif #include +#include #include #include #include diff --git a/avahi-core/dns.c b/avahi-core/dns.c index b91ccd0..66b0bdf 100644 --- a/avahi-core/dns.c +++ b/avahi-core/dns.c @@ -23,13 +23,13 @@ #include #endif -#include - #include #include #include #include +#include + #include #include #include diff --git a/avahi-core/entry.c b/avahi-core/entry.c index 3621fe3..855e228 100644 --- a/avahi-core/entry.c +++ b/avahi-core/entry.c @@ -23,16 +23,19 @@ #include #endif -#include -#include #include -#include #include #include #include #include #include +#include + +#include +#include +#include + #include #include #include 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 diff --git a/avahi-core/iface.c b/avahi-core/iface.c index 7afd251..6a92b8e 100644 --- a/avahi-core/iface.c +++ b/avahi-core/iface.c @@ -24,11 +24,13 @@ #endif #include -#include #include #include #include +#include +#include + #include #include #include diff --git a/avahi-core/iface.h b/avahi-core/iface.h index 1671753..24da316 100644 --- a/avahi-core/iface.h +++ b/avahi-core/iface.h @@ -45,7 +45,17 @@ typedef struct AvahiHwInterface AvahiHwInterface; #elif defined(HAVE_PF_ROUTE) #include "iface-pfroute.h" #else -#error "No network configuration notification system available" +typedef struct AvahiInterfaceMonitorOSDep AvahiInterfaceMonitorOSDep; +struct AvahiInterfaceMonitorOSDep { + + unsigned query_addr_seq, query_link_seq; + + enum { + LIST_IFACE, + LIST_ADDR, + LIST_DONE + } list; +}; #endif #define AVAHI_MAC_ADDRESS_MAX 32 diff --git a/avahi-core/socket.c b/avahi-core/socket.c index 0487023..a73bee8 100644 --- a/avahi-core/socket.c +++ b/avahi-core/socket.c @@ -27,9 +27,6 @@ #include #include #include -#include -#include -#include #include #include #include @@ -37,6 +34,12 @@ #include #include +#include +#include +#include +#include +#include + #ifdef IP_RECVIF #include #endif diff --git a/bootstrap.sh b/bootstrap.sh index 987e36b..ecc8f7c 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -55,7 +55,7 @@ case "$USER" in FLAGS="$FLAGS --disable-monodoc" ;; sebest) - FLAGS="$FLAGS --disable-monodoc --disable-mono --disable-qt3 --disable-qt4" + FLAGS="$FLAGS --disable-monodoc --disable-mono --disable-qt3 --disable-qt4 --sysconfdir=/etc --localstatedir=/var --prefix=/usr" ;; esac -- 2.39.5