mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-20 09:11:53 +00:00
LibRequests: Port to Windows
This commit is contained in:
parent
212cea4535
commit
969fb1a3a8
Notes:
github-actions[bot]
2024-12-17 10:08:45 +00:00
Author: https://github.com/stasoid
Commit: 969fb1a3a8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2921
2 changed files with 7 additions and 1 deletions
|
@ -12,3 +12,8 @@ set(GENERATED_SOURCES
|
||||||
|
|
||||||
serenity_lib(LibRequests requests)
|
serenity_lib(LibRequests requests)
|
||||||
target_link_libraries(LibRequests PRIVATE LibCore LibIPC)
|
target_link_libraries(LibRequests PRIVATE LibCore LibIPC)
|
||||||
|
|
||||||
|
if (WIN32)
|
||||||
|
find_package(pthread REQUIRED)
|
||||||
|
target_include_directories(LibRequests PRIVATE ${PTHREAD_INCLUDE_DIR})
|
||||||
|
endif()
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <LibCore/System.h>
|
||||||
#include <LibRequests/Request.h>
|
#include <LibRequests/Request.h>
|
||||||
#include <LibRequests/RequestClient.h>
|
#include <LibRequests/RequestClient.h>
|
||||||
|
|
||||||
|
@ -19,7 +20,7 @@ RequestClient::~RequestClient() = default;
|
||||||
void RequestClient::die()
|
void RequestClient::die()
|
||||||
{
|
{
|
||||||
// FIXME: Gracefully handle this, or relaunch and reconnect to RequestServer.
|
// FIXME: Gracefully handle this, or relaunch and reconnect to RequestServer.
|
||||||
warnln("\033[31;1m {} Lost connection to RequestServer\033[0m", getpid());
|
warnln("\033[31;1m {} Lost connection to RequestServer\033[0m", Core::System::getpid());
|
||||||
}
|
}
|
||||||
|
|
||||||
void RequestClient::ensure_connection(URL::URL const& url, ::RequestServer::CacheLevel cache_level)
|
void RequestClient::ensure_connection(URL::URL const& url, ::RequestServer::CacheLevel cache_level)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue