diff --git a/src/net/StaticSocketAddress.cxx b/src/net/StaticSocketAddress.cxx index 12e3704d0..ced0a4da3 100644 --- a/src/net/StaticSocketAddress.cxx +++ b/src/net/StaticSocketAddress.cxx @@ -30,7 +30,6 @@ #include "StaticSocketAddress.hxx" #include "IPv4Address.hxx" #include "IPv6Address.hxx" -#include "util/StringView.hxx" #include @@ -46,7 +45,7 @@ StaticSocketAddress::operator=(SocketAddress other) noexcept #ifdef HAVE_UN -StringView +std::string_view StaticSocketAddress::GetLocalRaw() const noexcept { return SocketAddress(*this).GetLocalRaw(); diff --git a/src/net/StaticSocketAddress.hxx b/src/net/StaticSocketAddress.hxx index dc73e30e4..49f37100d 100644 --- a/src/net/StaticSocketAddress.hxx +++ b/src/net/StaticSocketAddress.hxx @@ -34,8 +34,7 @@ #include "Features.hxx" #include - -struct StringView; +#include /** * An OO wrapper for struct sockaddr_storage. @@ -120,7 +119,7 @@ public: * @see SocketAddress::GetLocalRaw() */ [[gnu::pure]] - StringView GetLocalRaw() const noexcept; + std::string_view GetLocalRaw() const noexcept; #endif #ifdef HAVE_TCP