mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 12:12:15 +02:00
test: Fix OPENVPN_USE_SITNL redefine warning in ovpncli
If the OPENVPN_USE_SITNL is defined as compiler arguments or set earlier if cli.cpp was used in an #include statement, the compiler would warn about OPENVPN_USE_SITNL being redefined. We want OPENVPN_USE_SITNL by default, but the code does not need to explicitly define it if it is already defined. Signed-off-by: David Sommerseth <davids@openvpn.net>
This commit is contained in:
parent
590e2fd0da
commit
f6ab0178a5
@ -88,7 +88,7 @@
|
||||
#if defined(OPENVPN_PLATFORM_LINUX)
|
||||
|
||||
// use SITNL by default
|
||||
#ifndef OPENVPN_USE_IPROUTE2
|
||||
#if !defined(OPENVPN_USE_IPROUTE2) && !defined(OPENVPN_USE_SITNL)
|
||||
#define OPENVPN_USE_SITNL
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user