diff options
author | Perlover <perlover@perlover.com> | 2021-12-07 17:02:04 +0100 |
---|---|---|
committer | Perlover <perlover@perlover.com> | 2021-12-07 17:02:04 +0100 |
commit | c62d763fc313585d79ad833c9d729f6acf2652aa (patch) | |
tree | 932fe130085e4da845c9f5c433c53d372546d385 /src | |
parent | 091ccc38c2e589b649648cbcc99aca4802f98775 (diff) | |
download | bitcoin-c62d763fc313585d79ad833c9d729f6acf2652aa.tar.xz |
Necessary improvements to make configure work without libevent installed
Diffstat (limited to 'src')
-rw-r--r-- | src/httpserver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/httpserver.cpp b/src/httpserver.cpp index 59569b20a4..e18828e31d 100644 --- a/src/httpserver.cpp +++ b/src/httpserver.cpp @@ -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); |