From: Gerd von Egidy Date: Mon, 25 May 2015 17:15:39 +0000 (+0200) Subject: fix compile with newer boost version X-Git-Tag: v1.1~3 X-Git-Url: http://developer.intra2net.com/git/?p=bpdyndnsd;a=commitdiff_plain;h=f2d91b41ea821a1dd3aa6a13e5b4f160ff535e3f fix compile with newer boost version --- 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" )