From cd06d937a5be559f6819ab579f30bc5e0afe8651 Mon Sep 17 00:00:00 2001 From: begasus Date: Fri, 14 May 2021 11:58:34 +0000 Subject: [PATCH] Search for libnetwork on Haiku --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index df4a3f81f..60e9c441d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,6 +112,17 @@ else (HAVE_UUID_UNPARSE_LOWER) message ("-- Found libuuid, using internal uuid_unparse_lower") endif (HAVE_UUID_UNPARSE_LOWER) +if (HAIKU) + # search for socket() in libnetwork on Haiku + message("-- Looking for libnetwork") + find_library (NETWORK_LIBRARY NAMES network) + if (NETWORK_LIBRARY) + set (TASK_LIBRARIES ${TASK_LIBRARIES} ${NETWORK_LIBRARY}) + else (NETWORK_LIBRARY) + message(FATAL_ERROR "-- libnetwork not found.") + endif (NETWORK_LIBRARY) +endif (HAIKU) + if (SOLARIS) # accept() is in libsocket according to its manpage message("-- Looking for libsocket")