From 7354ac724e8c3c450d4a926c2e4ed79866a067ac Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 6 Oct 2022 17:14:12 +0200 Subject: [PATCH] WebContent: Don't pthread_setname_np() non-SerenityOS platforms --- Userland/Services/WebContent/ConnectionFromClient.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Services/WebContent/ConnectionFromClient.cpp b/Userland/Services/WebContent/ConnectionFromClient.cpp index df2696abc9..a1f1efa954 100644 --- a/Userland/Services/WebContent/ConnectionFromClient.cpp +++ b/Userland/Services/WebContent/ConnectionFromClient.cpp @@ -81,6 +81,7 @@ void ConnectionFromClient::load_url(const URL& url) { dbgln_if(SPAM_DEBUG, "handle: WebContentServer::LoadURL: url={}", url); +#if defined(AK_OS_SERENITY) String process_name; if (url.host().is_empty()) process_name = "WebContent"; @@ -88,6 +89,7 @@ void ConnectionFromClient::load_url(const URL& url) process_name = String::formatted("WebContent: {}", url.host()); pthread_setname_np(pthread_self(), process_name.characters()); +#endif page().load(url); }