mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-05 10:48:09 -05:00
Fixup for libevent 2.0
This commit is contained in:
parent
0b67ae3974
commit
2b2883403e
@ -106,7 +106,11 @@ request_cb(struct evhttp_request *req, void *arg)
|
||||
}
|
||||
|
||||
response_code = evhttp_request_get_response_code(req);
|
||||
#ifndef HAVE_LIBEVENT2_OLD
|
||||
response_code_line = evhttp_request_get_response_code_line(req);
|
||||
#else
|
||||
response_code_line = "no error text";
|
||||
#endif
|
||||
|
||||
if (response_code == 0)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user