fix compile with newer boost version
authorGerd von Egidy <gerd.von.egidy@intra2net.com>
Mon, 25 May 2015 17:15:39 +0000 (19:15 +0200)
committerGerd von Egidy <gerd.von.egidy@intra2net.com>
Mon, 25 May 2015 18:48:50 +0000 (20:48 +0200)
src/config.cpp

index 0285ccc..795b2ed 100644 (file)
@@ -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" )