]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix linking issues on MinGW
authorDomagoj Pensa <domagoj@pensa.hr>
Wed, 5 Feb 2020 12:46:15 +0000 (13:46 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 5 Feb 2020 20:11:54 +0000 (21:11 +0100)
MinGW linking fails for several files if compiled without "-O2" due to
a missing "static" declaration for inline functions tuntap_is_wintun()
and tuntap_ring_empty().

Signed-off-by: Domagoj Pensa <domagoj@pensa.hr>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Message-Id: <20200205124615.15758-3-domagoj@pensa.hr>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19356.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/tun.h

index 97d28f45f419064cf5bb492432c8073d73df2a6c..327d79279e036f8be0bca3cc9680a79aff274894 100644 (file)
@@ -224,13 +224,13 @@ tuntap_defined(const struct tuntap *tt)
 }
 
 #ifdef _WIN32
-inline bool
+static inline bool
 tuntap_is_wintun(struct tuntap *tt)
 {
     return tt && tt->windows_driver == WINDOWS_DRIVER_WINTUN;
 }
 
-inline bool
+static inline bool
 tuntap_ring_empty(struct tuntap *tt)
 {
     return tuntap_is_wintun(tt) && (tt->wintun_send_ring->head == tt->wintun_send_ring->tail);