mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-15 16:20:08 +02:00
45 lines
1.8 KiB
Plaintext
45 lines
1.8 KiB
Plaintext
From 096a8cdae1859505980e303d8ce38fc9867e2058 Mon Sep 17 00:00:00 2001
|
|
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
|
Date: Thu, 1 Oct 2020 21:37:16 +1000
|
|
Subject: Fix for Haiku
|
|
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 8628277..dec48d4 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -178,6 +178,8 @@ if (APPLE) # ... with Apple macOS libraries
|
|
target_link_libraries(${STLINK_LIB_SHARED} ${LIBUSB_LIBRARY} ${SSP_LIB} ${ObjC} ${CoreFoundation} ${IOKit})
|
|
elseif (WIN32) # ... with Windows libraries
|
|
target_link_libraries(${STLINK_LIB_SHARED} ${LIBUSB_LIBRARY} ${SSP_LIB} wsock32 ws2_32)
|
|
+elseif (HAIKU)
|
|
+ target_link_libraries(${STLINK_LIB_SHARED} ${LIBUSB_LIBRARY} ${SSP_LIB} network bsd)
|
|
else ()
|
|
target_link_libraries(${STLINK_LIB_SHARED} ${LIBUSB_LIBRARY} ${SSP_LIB})
|
|
endif ()
|
|
@@ -213,6 +215,8 @@ if (APPLE) # ... with Apple macOS libraries
|
|
target_link_libraries(${STLINK_LIB_STATIC} ${LIBUSB_LIBRARY} ${SSP_LIB} ${ObjC} ${CoreFoundation} ${IOKit})
|
|
elseif (WIN32) # ... with Windows libraries
|
|
target_link_libraries(${STLINK_LIB_STATIC} ${LIBUSB_LIBRARY} ${SSP_LIB} wsock32 ws2_32)
|
|
+elseif (HAIKU)
|
|
+ target_link_libraries(${STLINK_LIB_STATIC} ${LIBUSB_LIBRARY} ${SSP_LIB} network bsd)
|
|
else ()
|
|
target_link_libraries(${STLINK_LIB_STATIC} ${LIBUSB_LIBRARY} ${SSP_LIB})
|
|
endif ()
|
|
diff --git a/src/libusb_settings.h b/src/libusb_settings.h
|
|
index c2e2df9..65d8982 100644
|
|
--- a/src/libusb_settings.h
|
|
+++ b/src/libusb_settings.h
|
|
@@ -33,6 +33,8 @@
|
|
#define MINIMAL_API_VERSION 0x01000102 // v1.0.16
|
|
#elif defined (__linux__)
|
|
#define MINIMAL_API_VERSION 0x01000104 // v1.0.20
|
|
+#elif defined (__HAIKU__)
|
|
+ #define MINIMAL_API_VERSION 0x01000107 // v1.0.23
|
|
#elif defined (__APPLE__)
|
|
#define MINIMAL_API_VERSION 0x01000104 // v1.0.20
|
|
#elif defined (_WIN32)
|
|
--
|
|
2.28.0
|
|
|