diff options
author | fanquake <fanquake@gmail.com> | 2024-03-22 14:29:21 +0000 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2024-04-30 12:41:20 +0800 |
commit | f5618c79d9e7af05c2987044dc2da03697f8bb89 (patch) | |
tree | 977b204a23844f636f7bd7c2e38a467f41754c16 /depends/patches | |
parent | 6866b571ab96f03ca0775424e45458c5731f230f (diff) |
depends: add upstream CMake patch to miniupnpc
Diffstat (limited to 'depends/patches')
-rw-r--r-- | depends/patches/miniupnpc/cmake_get_src_addr.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/depends/patches/miniupnpc/cmake_get_src_addr.patch b/depends/patches/miniupnpc/cmake_get_src_addr.patch new file mode 100644 index 0000000000..bae1b738f3 --- /dev/null +++ b/depends/patches/miniupnpc/cmake_get_src_addr.patch @@ -0,0 +1,22 @@ +commit cb2026239c2a3aff393952ccb0ee1c448189402d +Author: fanquake <fanquake@gmail.com> +Date: Fri Mar 22 14:03:54 2024 +0000 + + build: add MINIUPNPC_GET_SRC_ADDR to CMake build + + This mirrors the autotools build. + + See https://github.com/miniupnp/miniupnp/pull/721. + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 1aa95a8..0cacf3e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -31,6 +31,7 @@ endif () + if (NOT WIN32) + target_compile_definitions(miniupnpc-private INTERFACE + MINIUPNPC_SET_SOCKET_TIMEOUT ++ MINIUPNPC_GET_SRC_ADDR + _BSD_SOURCE _DEFAULT_SOURCE) + if (NOT APPLE AND NOT CMAKE_SYSTEM_NAME MATCHES ".*BSD" AND NOT CMAKE_SYSTEM_NAME STREQUAL "SunOS") + # add_definitions (-D_POSIX_C_SOURCE=200112L) |