From e7d4fd2d13f753cee86ac2ffd82259ab460e1237 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sat, 1 Aug 2020 21:59:33 +0300 Subject: [PATCH] Include config.hpp before checking BOOST_LOG_WITHOUT_SYSLOG. Boost.Log's config.hpp may define BOOST_LOG_WITHOUT_SYSLOG if no native syslog API or Boost.ASIO is available, so we need to include the header before checking the macro. Closes https://github.com/boostorg/log/pull/123. --- src/syslog_backend.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/syslog_backend.cpp b/src/syslog_backend.cpp index 9ce19f4..b39838d 100644 --- a/src/syslog_backend.cpp +++ b/src/syslog_backend.cpp @@ -13,9 +13,10 @@ * at http://www.boost.org/doc/libs/release/libs/log/doc/html/index.html. */ +#include + #ifndef BOOST_LOG_WITHOUT_SYSLOG -#include #include #include #include