1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Fixing closesocket linking error.

Whenever I tried to use this Socket class, I get the linking error which says `closesocket` is unresolved. I am not sure this is how it should be done but after specifying the lib, it solved the issue.
This commit is contained in:
Purple 2020-04-28 22:44:01 +06:00 committed by GitHub
parent 86a97a12e5
commit ae8ee89b0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,7 +148,7 @@ namespace System.Net
static extern int32 connect(HSocket s, SockAddr* name, int32 nameLen);
#if BF_PLATFORM_WINDOWS
[CLink, StdCall]
[Import("wsock32.lib"), CLink, StdCall]
static extern int32 closesocket(HSocket s);
#else
[CLink, StdCall]