mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +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>
|
#include <event2/bufferevent_compat.h>
|
||||||
#else
|
#else
|
||||||
#include <event.h>
|
#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
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_MALLOC_TRIM
|
#ifdef HAVE_MALLOC_TRIM
|
||||||
|
Loading…
Reference in New Issue
Block a user