You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of #85595 - CDirkx:win-linkage, r=nagisa
Only register `WSACleanup` if `WSAStartup` is actually ever called
Fix for #85441.
Because `WSACleanup` appears in `cleanup` currently `WS2_32.dll` is always linked, even if no network functionality is ever used.
To prevent this, `WSACleanup` has to only appear in `init`, hence the workaround of registering it in a static.
If anyone knows a cleaner solution, let me know.
0 commit comments