mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-04 01:36:23 -04:00
le-proxy: initiate use of the Winsock DLL
Closes: #803 (cherry-picked) (cherry picked from commit 16d8564a2cd2ec665b577f39eea6583d4b651e92)
This commit is contained in:
parent
d83a517c4d
commit
2a1e153035
@ -216,6 +216,13 @@ main(int argc, char **argv)
|
||||
int use_ssl = 0;
|
||||
struct evconnlistener *listener;
|
||||
|
||||
#ifdef _WIN32
|
||||
WORD wVersionRequested;
|
||||
WSADATA wsaData;
|
||||
wVersionRequested = MAKEWORD(2, 2);
|
||||
(void) WSAStartup(wVersionRequested, &wsaData);
|
||||
#endif
|
||||
|
||||
if (argc < 3)
|
||||
syntax();
|
||||
|
||||
@ -290,5 +297,9 @@ main(int argc, char **argv)
|
||||
evconnlistener_free(listener);
|
||||
event_base_free(base);
|
||||
|
||||
#ifdef _WIN32
|
||||
WSACleanup();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user