2
0
Эх сурвалжийг харах

miniupnpc: Disable socket timeout on Windows, matching upstream

Fixes #88471.

(cherry picked from commit f695de7c68e373088175f8f3b1650f11a27be7aa)
Rémi Verschelde 1 жил өмнө
parent
commit
6138b72529
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  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()