mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 00:30:06 +02:00
37 lines
1000 B
Plaintext
37 lines
1000 B
Plaintext
From 0080247d1348a3e25b3f8e6d6580a8711ecbb3b9 Mon Sep 17 00:00:00 2001
|
|
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
|
Date: Sun, 12 Feb 2023 13:26:04 +1000
|
|
Subject: Haiku fix
|
|
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 3d9e4a9..cc40f17 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -273,6 +273,9 @@ if(WIN32)
|
|
target_link_libraries(srtp2 ws2_32)
|
|
target_compile_definitions(srtp2 PUBLIC _CRT_SECURE_NO_WARNINGS)
|
|
endif()
|
|
+if(HAIKU)
|
|
+ target_link_libraries(srtp2 network)
|
|
+endif()
|
|
|
|
install(TARGETS srtp2 DESTINATION lib
|
|
EXPORT libSRTPTargets
|
|
diff --git a/test/cutest.h b/test/cutest.h
|
|
index 94e1087..9a10fac 100644
|
|
--- a/test/cutest.h
|
|
+++ b/test/cutest.h
|
|
@@ -91,7 +91,7 @@
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
-#if defined(unix) || defined(__unix__) || defined(__unix) || defined(__APPLE__)
|
|
+#if defined(unix) || defined(__unix__) || defined(__unix) || defined(__APPLE__) || defined(__HAIKU__)
|
|
#define CUTEST_UNIX__ 1
|
|
#include <errno.h>
|
|
#include <unistd.h>
|
|
--
|
|
2.37.3
|
|
|