]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
* openbsd: no IFF_MULTICAST, #ifdef around it
authorJuanJo Ciarlante <jjo@google.com>
Tue, 20 Oct 2009 20:38:26 +0000 (22:38 +0200)
committerJuanJo Ciarlante <juanjosec@gmail.com>
Fri, 25 Mar 2011 12:30:30 +0000 (13:30 +0100)
tun.c

diff --git a/tun.c b/tun.c
index 59e87dc75a7281ddf42cd428ec0ef67d43936712..f8ebbb558a8e86c4f6350e408a235cd3957f9b29 100644 (file)
--- 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",