Skip to content

Commit

Permalink
Merge pull request #1 from apoikos/fix/libevent-2.1
Browse files Browse the repository at this point in the history
Fix redsocks_evbuffer_readline with libevent 2.1
  • Loading branch information
dorsegal authored Mar 27, 2024
2 parents 19b822e + 792a06b commit cb2fa72
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 cb2fa72

Please sign in to comment.