From f2d91b41ea821a1dd3aa6a13e5b4f160ff535e3f Mon Sep 17 00:00:00 2001 From: Gerd von Egidy Date: Mon, 25 May 2015 19:15:39 +0200 Subject: [PATCH] fix compile with newer boost version --- src/config.cpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/config.cpp b/src/config.cpp index 0285ccc..795b2ed 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -620,7 +620,11 @@ int Config::load_config_from_files() { if( fs::is_regular_file( dir_itr->status() ) ) { +#if BOOST_FILESYSTEM_VERSION >= 3 + string actual_file = dir_itr->path().filename().string(); +#else string actual_file = dir_itr->path().filename(); +#endif boost::regex expr(".*\\.conf$"); // If it is the main config file do the following if ( actual_file == "bpdyndnsd.conf" ) -- 1.7.1