miniupnpc: Disable socket timeout on Windows, matching upstream

Fixes #88471.
This commit is contained in:
Rémi Verschelde 2024-05-06 23:30:09 +02:00
parent 7cdad33311
commit f695de7c68
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -30,6 +30,7 @@ if env["builtin_miniupnpc"]:
env_upnp.Prepend(CPPPATH=[thirdparty_dir + "include"]) env_upnp.Prepend(CPPPATH=[thirdparty_dir + "include"])
env_upnp.Append(CPPDEFINES=["MINIUPNP_STATICLIB"]) env_upnp.Append(CPPDEFINES=["MINIUPNP_STATICLIB"])
if env["platform"] != "windows":
env_upnp.Append(CPPDEFINES=["MINIUPNPC_SET_SOCKET_TIMEOUT"]) env_upnp.Append(CPPDEFINES=["MINIUPNPC_SET_SOCKET_TIMEOUT"])
env_thirdparty = env_upnp.Clone() env_thirdparty = env_upnp.Clone()