Skip to content

Commit

Permalink
miniupnpc: Disable socket timeout on Windows, matching upstream
Browse files Browse the repository at this point in the history
Fixes #88471.
  • Loading branch information
akien-mga committed May 6, 2024
1 parent 7cdad33 commit f695de7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/upnp/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f695de7

Please sign in to comment.