diff --git a/Libraries/LibThreading/CMakeLists.txt b/Libraries/LibThreading/CMakeLists.txt index 2e9b204089c3..8b717607802b 100644 --- a/Libraries/LibThreading/CMakeLists.txt +++ b/Libraries/LibThreading/CMakeLists.txt @@ -7,5 +7,7 @@ serenity_lib(LibThreading threading) target_link_libraries(LibThreading PRIVATE LibCore) if (WIN32) + find_package(pthread REQUIRED) + target_include_directories(LibThreading PUBLIC $) target_link_libraries(LibThreading PUBLIC ${PTHREAD_LIBRARY}) endif() diff --git a/Services/ImageDecoder/CMakeLists.txt b/Services/ImageDecoder/CMakeLists.txt index e4ea770236b7..097efc5042a6 100644 --- a/Services/ImageDecoder/CMakeLists.txt +++ b/Services/ImageDecoder/CMakeLists.txt @@ -21,5 +21,5 @@ add_executable(ImageDecoder main.cpp) target_include_directories(imagedecoderservice PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/../..) target_include_directories(imagedecoderservice PRIVATE ${LADYBIRD_SOURCE_DIR}/Services/) -target_link_libraries(ImageDecoder PRIVATE imagedecoderservice LibCore LibMain) +target_link_libraries(ImageDecoder PRIVATE imagedecoderservice LibCore LibMain LibThreading) target_link_libraries(imagedecoderservice PRIVATE LibCore LibGfx LibIPC LibImageDecoderClient LibMain LibThreading) diff --git a/Services/ImageDecoder/ConnectionFromClient.cpp b/Services/ImageDecoder/ConnectionFromClient.cpp index da0b1db19557..1da5c677ff67 100644 --- a/Services/ImageDecoder/ConnectionFromClient.cpp +++ b/Services/ImageDecoder/ConnectionFromClient.cpp @@ -57,8 +57,8 @@ ErrorOr ConnectionFromClient::connect_new_client() auto client_socket_or_error = Core::LocalSocket::adopt_fd(socket_fds[0]); if (client_socket_or_error.is_error()) { - close(socket_fds[0]); - close(socket_fds[1]); + (void)Core::System::close(socket_fds[0]); + (void)Core::System::close(socket_fds[1]); return client_socket_or_error.release_error(); }