From 918ab10046454054b927e655882fcf894c142ee8 Mon Sep 17 00:00:00 2001 From: Zrubi Date: Thu, 14 Jun 2018 10:28:35 +0200 Subject: [PATCH] Fix redsocks_evbuffer_readline with libevent 2.1 #123 --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c index 824d0cc5..30ee2903 100644 --- a/utils.c +++ b/utils.c @@ -117,7 +117,7 @@ int redsocks_gettimeofday(struct timeval *tv) char *redsocks_evbuffer_readline(struct evbuffer *buf) { -#if _EVENT_NUMERIC_VERSION >= 0x02000000 +#if LIBEVENT_VERSION_NUMBER >= 0x02000000 return evbuffer_readln(buf, NULL, EVBUFFER_EOL_CRLF); #else return evbuffer_readline(buf);