diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-11-16 12:03:12 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-11-16 12:03:19 +0100 |
| commit | dafefb79244d513cf68e2ce6db4b16edc58ae2f5 (patch) | |
| tree | 6f552e168d1db1da4990fb3ec2758e460d5d5e4c /src/httpserver.cpp | |
| parent | Merge pull request #6991 (diff) | |
| parent | Avoid a compile error on hosts with libevent too old for EVENT_LOG_WARN. (diff) | |
| download | discoin-dafefb79244d513cf68e2ce6db4b16edc58ae2f5.tar.xz discoin-dafefb79244d513cf68e2ce6db4b16edc58ae2f5.zip | |
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/httpserver.cpp')
| -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 424ef015c..52f5675e8 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 |