Skip to content

Commit 859644b

Browse files
committed
build: set D_WIN32_WINNT=0x0601 for mingw miniupnpc
This matches configure, and what we set for libevent etc.
1 parent 8e2d93f commit 859644b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

depends/packages/miniupnpc.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ $(package)_file_name=$(package)-$($(package)_version).tar.gz
55
$(package)_sha256_hash=888fb0976ba61518276fe1eda988589c700a3f2a69d71089260d75562afd3687
66
$(package)_patches=dont_leak_info.patch respect_mingw_cflags.patch
77

8+
# Next time this package is updated, ensure that _WIN32_WINNT is still properly set.
9+
# See discussion in https://github.com/bitcoin/bitcoin/pull/25964.
810
define $(package)_set_vars
911
$(package)_build_opts=CC="$($(package)_cc)"
1012
$(package)_build_opts_darwin=LIBTOOL="$($(package)_libtool)"
11-
$(package)_build_opts_mingw32=-f Makefile.mingw
13+
$(package)_build_opts_mingw32=-f Makefile.mingw CFLAGS="$($(package)_cflags) -D_WIN32_WINNT=0x0601"
1214
$(package)_build_env+=CFLAGS="$($(package)_cflags) $($(package)_cppflags)" AR="$($(package)_ar)"
1315
endef
1416

0 commit comments

Comments
 (0)