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>
#endif /* ifdef ENABLE_MANAGEMENT */
}
-
+#ifndef _WIN32
/* normal signal handler, when we are in event loop */
static void
signal_handler(const int signum)
throw_signal(signum);
signal(signum, signal_handler);
}
+#endif
/* set handlers for unix signals */