aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/libutp/files/patch-CMakeLists.txt
diff options
context:
space:
mode:
authorLexi Winter <ivy@FreeBSD.org>2025-12-01 03:19:41 +0000
committerLexi Winter <ivy@FreeBSD.org>2025-12-01 03:19:41 +0000
commit2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch)
tree25f0138e1af8902b92dacc8cce09b267447c17db /net-p2p/libutp/files/patch-CMakeLists.txt
parentf85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff)
parent1a30da80670973368b399f2b01fe9c04b91a1273 (diff)
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'net-p2p/libutp/files/patch-CMakeLists.txt')
-rw-r--r--net-p2p/libutp/files/patch-CMakeLists.txt25
1 files changed, 0 insertions, 25 deletions
diff --git a/net-p2p/libutp/files/patch-CMakeLists.txt b/net-p2p/libutp/files/patch-CMakeLists.txt
deleted file mode 100644
index 27dc44215202..000000000000
--- a/net-p2p/libutp/files/patch-CMakeLists.txt
+++ /dev/null
@@ -1,25 +0,0 @@
---- CMakeLists.txt.orig 2023-08-04 09:40:52 UTC
-+++ CMakeLists.txt
-@@ -56,6 +56,13 @@ if(WIN32)
- libutp_inet_ntop.h)
- endif()
-
-+if(CMAKE_VERSION VERSION_LESS 3.25)
-+ set(BSD OFF)
-+ if(CMAKE_SYSTEM_NAME MATCHES "BSD")
-+ set(BSD ON)
-+ endif()
-+ endif()
-+
- add_library(libutp ${LIBUTP_LIBRARY_TYPE}
- include/libutp/utp.h
- include/libutp/utp_types.h
-@@ -118,7 +125,7 @@ if(LIBUTP_BUILD_PROGRAMS AND NOT MSVC)
-
- target_compile_definitions(ucat
- PRIVATE
-- $<$<NOT:$<BOOL:${WIN32}>>:_POSIX_C_SOURCE=200112L>
-+ $<$<NOT:$<OR:$<BOOL:${WIN32}>,$<BOOL:${BSD}>>>:_POSIX_C_SOURCE=200112L>
- $<$<BOOL:${APPLE}>:_DARWIN_C_SOURCE>)
-
- target_link_libraries(ucat