diff --git a/Userland/Libraries/LibSQL/SQLClient.cpp b/Userland/Libraries/LibSQL/SQLClient.cpp index 0b6e487687..251e8516d3 100644 --- a/Userland/Libraries/LibSQL/SQLClient.cpp +++ b/Userland/Libraries/LibSQL/SQLClient.cpp @@ -12,6 +12,7 @@ #if !defined(AK_OS_SERENITY) # include +# include # include # include # include @@ -82,7 +83,7 @@ static ErrorOr launch_server(ByteString const& socket_path, ByteString con server_fd = TRY(Core::System::dup(server_fd)); auto takeover_string = ByteString::formatted("SQLServer:{}", server_fd); - TRY(Core::System::setenv("SOCKET_TAKEOVER"sv, takeover_string, true)); + TRY(Core::Environment::set("SOCKET_TAKEOVER"sv, takeover_string, Core::Environment::Overwrite::Yes)); ErrorOr result; for (auto const& server_path : candidate_server_paths) {