mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 11:55:56 +00:00
Use evbuffer_readline if readln is not available. It doesn't work properly but
at least it builds.
This commit is contained in:
parent
6874ec0dcc
commit
9e4a9c51cc
8
compat.h
8
compat.h
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user