From: Domagoj Pensa Date: Wed, 5 Feb 2020 12:46:15 +0000 (+0100) Subject: Fix linking issues on MinGW X-Git-Tag: v2.5_beta1~215 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5822e52c6b0f86f9e4de946f9fb1374c6fad95f1;p=thirdparty%2Fopenvpn.git Fix linking issues on MinGW 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 Acked-by: Lev Stipakov 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 --- diff --git a/src/openvpn/tun.h b/src/openvpn/tun.h index 97d28f45f..327d79279 100644 --- a/src/openvpn/tun.h +++ b/src/openvpn/tun.h @@ -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);