diff options
Diffstat (limited to 'src/net/ToString.cxx')
-rw-r--r-- | src/net/ToString.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/net/ToString.cxx b/src/net/ToString.cxx index d15812457..7d89cd3a8 100644 --- a/src/net/ToString.cxx +++ b/src/net/ToString.cxx @@ -35,6 +35,7 @@ #include <algorithm> #include <cassert> +#include <cstring> #ifdef _WIN32 #include <ws2tcpip.h> @@ -49,8 +50,6 @@ #include <sys/un.h> #endif -#include <string.h> - #ifdef HAVE_UN static std::string @@ -104,7 +103,7 @@ ToString(SocketAddress address) noexcept return "unknown"; #ifdef HAVE_IPV6 - if (strchr(host, ':') != nullptr) { + if (std::strchr(host, ':') != nullptr) { std::string result("["); result.append(host); result.append("]:"); |