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 godotengine#88471.

(cherry picked from commit f695de7)
  • Loading branch information
akien-mga committed May 7, 2024
1 parent f48a939 commit 004ce6d
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 004ce6d

Please sign in to comment.