diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-02-08 23:05:44 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-13 00:50:07 +0000 |
commit | a96339b72b3b417ffaa4fbb4e7575149f749acaa (patch) | |
tree | 10cd665265e85a750d6a84713bedf73acf359069 /Userland/Libraries/LibCore/SystemServerTakeover.cpp | |
parent | d43a7eae545cd699f301471bd0f82399174339c1 (diff) | |
download | serenity-a96339b72b3b417ffaa4fbb4e7575149f749acaa.zip |
LibCore: Move Stream-based sockets into the `Core` namespace
Diffstat (limited to 'Userland/Libraries/LibCore/SystemServerTakeover.cpp')
-rw-r--r-- | Userland/Libraries/LibCore/SystemServerTakeover.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Libraries/LibCore/SystemServerTakeover.cpp b/Userland/Libraries/LibCore/SystemServerTakeover.cpp index 9ed6ff583f..48f346560e 100644 --- a/Userland/Libraries/LibCore/SystemServerTakeover.cpp +++ b/Userland/Libraries/LibCore/SystemServerTakeover.cpp @@ -5,6 +5,7 @@ */ #include "SystemServerTakeover.h" +#include <LibCore/Socket.h> #include <LibCore/System.h> namespace Core { @@ -34,7 +35,7 @@ static void parse_sockets_from_system_server() unsetenv(socket_takeover); } -ErrorOr<NonnullOwnPtr<Core::Stream::LocalSocket>> take_over_socket_from_system_server(DeprecatedString const& socket_path) +ErrorOr<NonnullOwnPtr<Core::LocalSocket>> take_over_socket_from_system_server(DeprecatedString const& socket_path) { if (!s_overtaken_sockets_parsed) parse_sockets_from_system_server(); @@ -57,7 +58,7 @@ ErrorOr<NonnullOwnPtr<Core::Stream::LocalSocket>> take_over_socket_from_system_s if (!S_ISSOCK(stat.st_mode)) return Error::from_string_literal("The fd we got from SystemServer is not a socket"); - auto socket = TRY(Core::Stream::LocalSocket::adopt_fd(fd)); + auto socket = TRY(Core::LocalSocket::adopt_fd(fd)); // It had to be !CLOEXEC for obvious reasons, but we // don't need it to be !CLOEXEC anymore, so set the // CLOEXEC flag now. |