Use evbuffer_readline if readln is not available. It doesn't work properly but

at least it builds.
This commit is contained in:
Nicholas Marriott 2024-11-27 10:37:45 +00:00
parent 6874ec0dcc
commit 9e4a9c51cc

View File

@ -38,6 +38,14 @@
#include <event2/bufferevent_compat.h>
#else
#include <event.h>
#ifndef EVBUFFER_EOL_LF
/*
* This doesn't really work because evbuffer_readline is broken, but gets us to
* build with very old (older than 1.4.14) libevent.
*/
#define EVBUFFER_EOL_LF
#define evbuffer_readln(a, b, c) evbuffer_readline(a)
#endif
#endif
#ifdef HAVE_MALLOC_TRIM