From: JuanJo Ciarlante Date: Tue, 20 Oct 2009 20:38:26 +0000 (+0200) Subject: * openbsd: no IFF_MULTICAST, #ifdef around it X-Git-Tag: v2.3-alpha1~240^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ebce9fba41421c948e1399bfe29bfa028d936076;p=thirdparty%2Fopenvpn.git * openbsd: no IFF_MULTICAST, #ifdef around it --- diff --git a/tun.c b/tun.c index 59e87dc75..f8ebbb558 100644 --- a/tun.c +++ b/tun.c @@ -1697,7 +1697,9 @@ open_tun (const char *dev, const char *dev_type, const char *dev_node, bool ipv6 strerror(errno)); } +#ifdef IFF_MULTICAST /* openbsd 4.x doesn't have this */ info.flags |= IFF_MULTICAST; +#endif if (ioctl (tt->fd, TUNSIFINFO, &info) < 0) { msg (M_WARN | M_ERRNO, "Can't set interface info: %s",