Skip to content

Commit

Permalink
Fix redsocks_evbuffer_readline with libevent 2.1 darkk#123
Browse files Browse the repository at this point in the history
  • Loading branch information
Zrubi committed Jun 14, 2018
1 parent 5df6a30 commit 918ab10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 918ab10

Please sign in to comment.