mirror of
https://github.com/amnezia-vpn/openvpn3.git
synced 2026-05-17 08:26:28 +03:00
unittest: Don't include sys/socket.h unconditionally
The sys/socket.h header is not available on Windows. This issue was
introduced in commit 1b4f736bb9, so the same fencing used in
that commit was also added around the #include statement.
Signed-off-by: David Sommerseth <davids@openvpn.net>
This commit is contained in:
@@ -8,7 +8,10 @@
|
||||
#include <openvpn/addr/ip.hpp>
|
||||
#include <openvpn/addr/pool.hpp>
|
||||
#include <openvpn/addr/ipv6.hpp>
|
||||
|
||||
#if defined(SIN6_LEN) || defined(__APPLE__) || defined(__FreeBSD__)
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
using namespace openvpn;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user