Browse Source

Merge pull request #91636 from akien-mga/miniupnpc-disable-SET_SOCKET_TIMEOUT

miniupnpc: Disable socket timeout on Windows, matching upstream
Rémi Verschelde 1 year ago
parent
commit
2576addc28
1 changed files with 2 additions and 1 deletions
  1. 2 1
      modules/upnp/SCsub

+ 2 - 1
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()