From f695de7c68e373088175f8f3b1650f11a27be7aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 6 May 2024 23:30:09 +0200 Subject: [PATCH] miniupnpc: Disable socket timeout on Windows, matching upstream Fixes #88471. --- modules/upnp/SCsub | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/upnp/SCsub b/modules/upnp/SCsub index 4b385b820db..98c03e9ee90 100644 --- a/modules/upnp/SCsub +++ b/modules/upnp/SCsub @@ -30,7 +30,8 @@ if env["builtin_miniupnpc"]: env_upnp.Prepend(CPPPATH=[thirdparty_dir + "include"]) env_upnp.Append(CPPDEFINES=["MINIUPNP_STATICLIB"]) - env_upnp.Append(CPPDEFINES=["MINIUPNPC_SET_SOCKET_TIMEOUT"]) + if env["platform"] != "windows": + env_upnp.Append(CPPDEFINES=["MINIUPNPC_SET_SOCKET_TIMEOUT"]) env_thirdparty = env_upnp.Clone() env_thirdparty.disable_warnings()