From 71ac8a5c8a97ae4bfc5e24868de731ffcc64f649 Mon Sep 17 00:00:00 2001
From: Sergei Reznikov <diver@gelios.net>
Date: Mon, 14 Dec 2020 17:02:02 +0300
Subject: Fix build on Haiku


diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3f4e85e..af6e6d4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,7 +18,7 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
 include(KDECMakeSettings)
 include(KDEGitCommitHooks)
 
-if (UNIX AND NOT APPLE AND NOT ANDROID)
+if (UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAIKU)
     find_package(X11)
     find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED COMPONENTS X11Extras)
 endif()
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 0e8ce9a..2a036b4 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -24,7 +24,7 @@ add_library(KF5::Crash ALIAS KF5Crash)
 
 target_include_directories(KF5Crash INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KCrash>")
 
-target_link_libraries(KF5Crash PUBLIC Qt5::Core)
+target_link_libraries(KF5Crash PUBLIC Qt5::Core network)
 target_link_libraries(KF5Crash PRIVATE KF5::CoreAddons KF5::WindowSystem)
 
 # FIXME: It is needed to work around undefined reference error on FreeBSD
-- 
2.30.2

