From 05d551a2ae38f4faf78b424b3a8336a62f901348 Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Fri, 11 Mar 2016 16:26:38 +0000 Subject: [PATCH] Add ifdef HAVE_CONFIG_H --- pdns/mtasker_context.cc | 2 ++ pdns/recursordist/configure.ac | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pdns/mtasker_context.cc b/pdns/mtasker_context.cc index e1e2553033..59cfeef5c2 100644 --- a/pdns/mtasker_context.cc +++ b/pdns/mtasker_context.cc @@ -1,4 +1,6 @@ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #if defined(HAVE_BOOST_CONTEXT) #include "mtasker_fcontext.cc" diff --git a/pdns/recursordist/configure.ac b/pdns/recursordist/configure.ac index c606064cb7..8e4346fef5 100644 --- a/pdns/recursordist/configure.ac +++ b/pdns/recursordist/configure.ac @@ -47,7 +47,7 @@ AC_DEFUN([PDNS_SELECT_CONTEXT_IMPL], [ LDFLAGS="$LDFLAGS $BOOST_THREAD_LDFLAGS" fi AC_MSG_NOTICE([checking whether the Boost context library actually links...]) - BOOST_FIND_LIB([context], [], [boost/context/fcontext.hpp], [[]]) + BOOST_FIND_LIB([context], [$1], [boost/context/fcontext.hpp], [[]]) case $boost_cv_lib_context in (yes) AC_MSG_NOTICE([MTasker will use the Boost context library for context switching]) -- 2.47.2