From 4de53076c82f6799271825d1660d822443ed6f3e Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Sat, 13 Nov 2021 08:28:23 +0000
Subject: Haiku doesn't support hard links


diff --git a/test/suites/base.bash b/test/suites/base.bash
index 8cc2e6c..cd8effb 100644
--- a/test/suites/base.bash
+++ b/test/suites/base.bash
@@ -164,7 +164,7 @@ base_tests() {
     # -------------------------------------------------------------------------
     TEST "Unsupported source language"
 
-    ln -f test1.c test1.ccc
+    ln -fs test1.c test1.ccc
     $CCACHE_COMPILE -c test1.ccc 2>/dev/null
     expect_stat unsupported_source_language 1
 
@@ -690,7 +690,7 @@ b"
     # -------------------------------------------------------------------------
     TEST "-x c"
 
-    ln -f test1.c test1.ccc
+    ln -fs test1.c test1.ccc
 
     $CCACHE_COMPILE -x c -c test1.ccc
     expect_stat preprocessed_cache_hit 0
@@ -703,7 +703,7 @@ b"
     # -------------------------------------------------------------------------
     TEST "-xc"
 
-    ln -f test1.c test1.ccc
+    ln -fs test1.c test1.ccc
 
     $CCACHE_COMPILE -xc -c test1.ccc
     expect_stat preprocessed_cache_hit 0
-- 
2.30.2


From 95c710a986a422aa8bed385a4669b0969e18d0ec Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Sat, 13 Nov 2021 12:28:11 +0000
Subject: Link against libnetwork


diff --git a/CMakeLists.txt b/CMakeLists.txt
index fcc2134..11e6259 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -137,6 +137,10 @@ if(ENABLE_DOCUMENTATION)
   add_subdirectory(doc)
 endif()
 
+if(HAIKU)
+	set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lnetwork")
+endif(HAIKU)
+
 #
 # Installation
 #
-- 
2.30.2

