diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-11-16 12:03:12 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-11-16 12:03:19 +0100 |
commit | dafefb79244d513cf68e2ce6db4b16edc58ae2f5 (patch) | |
tree | 6f552e168d1db1da4990fb3ec2758e460d5d5e4c /src | |
parent | 6876a78b863e2d4f4c7ad94627bb35363f6fa720 (diff) | |
parent | aee22bf2886acd3151992c42f7c0ca5f2aae3fdf (diff) |
Merge pull request #7016
aee22bf Avoid a compile error on hosts with libevent too old for EVENT_LOG_WARN. (Gregory Maxwell)
Diffstat (limited to 'src')
-rw-r--r-- | src/httpserver.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/httpserver.cpp b/src/httpserver.cpp index 424ef015c8..52f5675e85 100644 --- a/src/httpserver.cpp +++ b/src/httpserver.cpp @@ -365,6 +365,10 @@ static void HTTPWorkQueueRun(WorkQueue<HTTPClosure>* queue) /** libevent event log callback */ static void libevent_log_cb(int severity, const char *msg) { +#ifndef EVENT_LOG_WARN +// EVENT_LOG_WARN was added in 2.0.19; but before then _EVENT_LOG_WARN existed. +# define EVENT_LOG_WARN _EVENT_LOG_WARN +#endif if (severity >= EVENT_LOG_WARN) // Log warn messages and higher without debug category LogPrintf("libevent: %s\n", msg); else |