]> git.ipfire.org Git - thirdparty/openvpn.git/commit
sig.c: define signal_handler on non-windows only
authorAntonio Quartulli <a@unstable.cc>
Thu, 13 Jan 2022 10:14:34 +0000 (11:14 +0100)
committerGert Doering <gert@greenie.muc.de>
Fri, 14 Jan 2022 06:59:26 +0000 (07:59 +0100)
commit508ee74a9671d0175afeeb1711ba0f18d538cfb2
treefd3fc88efe8f0683b48714429635025eff83c392
parent3c0b2770a3fea1eea22a8a849254931d14ceca9c
sig.c: define signal_handler on non-windows only

signal_handler() is unused on Windows and generates a warning.
Confine it within "ifdef _WIN32" in order to reduce the compilation
noise.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220113101434.30223-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23530.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/sig.c