mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 11:53:00 -04:00
Make sample/hello_world work on windows
We forgot to include the WSAStartup call in main(). Patch from an anonymous user on Sourceforge. Fixes bug 3025354.
This commit is contained in:
parent
085987093f
commit
d89fdba424
@ -38,9 +38,12 @@ main(int argc, char **argv)
|
||||
struct event_base *base;
|
||||
struct evconnlistener *listener;
|
||||
struct event *signal_event;
|
||||
// struct sockaddr_storage ss;
|
||||
|
||||
struct sockaddr_in sin;
|
||||
#ifdef WIN32
|
||||
WSADATA wsa_data;
|
||||
WSAStartup(0x0201, &wsa_data);
|
||||
#endif
|
||||
|
||||
base = event_base_new();
|
||||
if (!base) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user