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
evutil_socket_t is a long long on Windows.
The do_term function passed as a pointer then does not match the function pointer type declaration. in http-server.c
Expected
libevent builds
Actual
../libevent-2.1.12-stable/sample/http-server.c:559:9: error: incompatible function pointer types passing
'void (int, short, void *)' to parameter of type 'event_callback_fn' (aka 'void (*)(long long, short, void *)')
[-Wincompatible-function-pointer-types]
559 | term = evsignal_new(base, SIGINT, do_term, base);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../libevent-2.1.12-stable/include/event2/event.h:983:44: note: expanded from macro 'evsignal_new'
983 | event_new((b), (x), EV_SIGNAL|EV_PERSIST, (cb), (arg))
| ^~~~
../libevent-2.1.12-stable/include/event2/event.h:1090:87: note: passing argument to parameter here
1090 | struct event *event_new(struct event_base *, evutil_socket_t, short, event_callback_fn, void *);
| ^
The text was updated successfully, but these errors were encountered:
hmartinez82
changed the title
HTTP Server sample fails to compile for Windows
HTTP Server sample fails to compile for Windows x64
Mar 16, 2024
evutil_socket_t
is along long
on Windows.The
do_term
function passed as a pointer then does not match the function pointer type declaration. inhttp-server.c
Expected
libevent builds
Actual
The text was updated successfully, but these errors were encountered: