diff options
author | Jack Lloyd <[email protected]> | 2017-12-13 17:57:31 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-12-30 14:15:51 -0500 |
commit | 092114e11c27de26a53aefa08547cc0bc44717ca (patch) | |
tree | 38b26479b272cd6fa60deb2b995f0d116087b331 /src/cli/socket_utils.h | |
parent | 2d3cee8b02a1823ef05eedbbd3e435131460635a (diff) |
Test OS features by the feature vs the OS name
Diffstat (limited to 'src/cli/socket_utils.h')
-rw-r--r-- | src/cli/socket_utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/socket_utils.h b/src/cli/socket_utils.h index a8e2a51a6..d7eb4382e 100644 --- a/src/cli/socket_utils.h +++ b/src/cli/socket_utils.h @@ -11,7 +11,7 @@ #include <botan/build.h> #include "cli_exceptions.h" -#if defined(BOTAN_TARGET_OS_IS_WINDOWS) +#if defined(BOTAN_TARGET_OS_HAS_WINSOCK2) #include <winsock2.h> #include <WS2tcpip.h> @@ -57,7 +57,7 @@ inline int send(int s, const uint8_t* buf, size_t len, int flags) return ::send(s, reinterpret_cast<const char*>(buf), static_cast<int>(len), flags); } -#else +#elif defined(BOTAN_TARGET_OS_HAS_POSIX1) #include <sys/types.h> #include <sys/time.h> |