From aed986c9283cb773c8e898cc2c6c2d7c98871539 Mon Sep 17 00:00:00 2001
From: ilor <kailoran@gmail.com>
Date: Tue, 24 May 2011 16:24:14 +0200
Subject: [PATCH] #ifdef fix for incompatible changes in new boost filesystem
 (v3)

---
 libpwrutils/pathsearch.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libpwrutils/pathsearch.cpp b/libpwrutils/pathsearch.cpp
index 1584d79..b53e268 100644
--- a/libpwrutils/pathsearch.cpp
+++ b/libpwrutils/pathsearch.cpp
@@ -121,7 +121,11 @@ std::vector<std::string> PathSearcherBase::list_files(const std::string& suffix)
 			for (directory_iterator i(p); i != directory_iterator(); ++i) {
 				boost::filesystem::path in = i->path();
 				if (in.extension() == suffix) {
+#if BOOST_FILESYSTEM_VERSION == 2
 					out.push_back(in.stem());
+#else
+					out.push_back(in.stem().string());
+#endif
 				}
 			}
 		}
-- 
GitLab