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:
David Sommerseth
2024-03-20 17:02:20 +01:00
parent 7f3e61089b
commit 43da4c8bc2

View File

@@ -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;