From 2691c079d41f6258f18d543d9d4d74f54e32f061 Mon Sep 17 00:00:00 2001 From: nipos Date: Sun, 27 Aug 2023 20:57:10 +0200 Subject: [PATCH] Meta+Ladybird: Link to libnetwork on Haiku --- Ladybird/RequestServer/CMakeLists.txt | 4 ++++ Meta/Lagom/CMakeLists.txt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Ladybird/RequestServer/CMakeLists.txt b/Ladybird/RequestServer/CMakeLists.txt index 1f0cb91296a..fab905c34c3 100644 --- a/Ladybird/RequestServer/CMakeLists.txt +++ b/Ladybird/RequestServer/CMakeLists.txt @@ -23,3 +23,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "SunOS") # Solaris has socket and networking related functions in two extra libraries target_link_libraries(RequestServer PRIVATE nsl socket) endif() +if (HAIKU) + # Haiku has networking related functions in the network library + target_link_libraries(RequestServer PRIVATE network) +endif() diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index cb798448f80..da4e7c7be94 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -344,6 +344,10 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "BSD$") # BSD Platforms have backtrace(3) in a separate library target_link_libraries(LibCore PRIVATE execinfo) endif() +if (HAIKU) + # Haiku has networking related functions in the network library + target_link_libraries(LibCore PRIVATE network) +endif() target_sources(LibCore PRIVATE ${AK_SOURCES}) # LibMain