From ca650e54078df49eeec7f9836d6248b09440bfa3 Mon Sep 17 00:00:00 2001 From: HAOZHE LI Date: Mon, 19 Aug 2024 16:14:22 +0800 Subject: [PATCH] Improve building for apple platforms(watchOS/tvOS/visionOS) --- usrsctplib/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usrsctplib/CMakeLists.txt b/usrsctplib/CMakeLists.txt index 93f6f4dde..4c3936c92 100644 --- a/usrsctplib/CMakeLists.txt +++ b/usrsctplib/CMakeLists.txt @@ -83,7 +83,9 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux") add_definitions(-D_GNU_SOURCE) endif () -if (CMAKE_SYSTEM_NAME MATCHES "Darwin" OR CMAKE_SYSTEM_NAME MATCHES "iOS") +if (CMAKE_SYSTEM_NAME MATCHES "Darwin" OR CMAKE_SYSTEM_NAME MATCHES "iOS" + OR CMAKE_SYSTEM_NAME MATCHES "tvOS" OR CMAKE_SYSTEM_NAME MATCHES "visionOS" + OR CMAKE_SYSTEM_NAME MATCHES "watchOS") add_definitions(-D__APPLE_USE_RFC_2292) endif ()