From babde2e445feda1299589a087eab0f156ab6b9cd Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Sun, 9 Jan 2022 08:23:30 +0000
Subject: Add check for libnetwork


diff --git a/configure.ac b/configure.ac
index b65d1ae..a90a75e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -101,6 +101,9 @@ AC_LIBMODBUS_CHECK_BUILD_DOC
 # workaround that problem and Cygwin doesn't define MSG_DONTWAIT.
 AC_CHECK_DECLS([__CYGWIN__])
 
+# Check for network function in libnetwork for Haiku
+AC_SEARCH_LIBS(accept, network socket)
+
 # Checks for library functions.
 AC_CHECK_FUNCS([accept4 getaddrinfo gettimeofday inet_ntoa select socket strerror strlcpy])
 
-- 
2.30.2


From 73297e5f0de6ccc4239a18d8ed22f0a4ff3d0b5a Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Sun, 9 Jan 2022 08:25:41 +0000
Subject: Haiku doesn't supply killall


diff --git a/tests/unit-tests.sh b/tests/unit-tests.sh
old mode 100755
new mode 100644
index 37f716f..a752bf6
--- a/tests/unit-tests.sh
+++ b/tests/unit-tests.sh
@@ -14,6 +14,6 @@ echo "Starting client"
 ./unit-test-client > $client_log 2>&1
 rc=$?
 
-killall unit-test-server
+kill unit-test-server
 exit $rc
 
-- 
2.30.2

