mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Necessary improvements to make configure work without libevent installed
This commit is contained in:
parent
091ccc38c2
commit
c62d763fc3
2 changed files with 20 additions and 10 deletions
|
|
@ -602,7 +602,7 @@ CService HTTPRequest::GetPeer() const
|
|||
const char* address = "";
|
||||
uint16_t port = 0;
|
||||
|
||||
#if HAVE_EVHTTP_CONNECTION_GET_PEER_CONST_CHAR
|
||||
#ifdef HAVE_EVHTTP_CONNECTION_GET_PEER_CONST_CHAR
|
||||
evhttp_connection_get_peer(con, &address, &port);
|
||||
#else
|
||||
evhttp_connection_get_peer(con, (char**)&address, &port);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue