From e799f8af77287c23b7726826723c2482265f9a3a Mon Sep 17 00:00:00 2001
From: ilor <kailoran@gmail.com>
Date: Tue, 24 May 2011 16:26:03 +0200
Subject: [PATCH] *proper* fix for the boost::fs issue

---
 libpwrutils/pathsearch.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libpwrutils/pathsearch.cpp b/libpwrutils/pathsearch.cpp
index b53e268..973e518 100644
--- a/libpwrutils/pathsearch.cpp
+++ b/libpwrutils/pathsearch.cpp
@@ -121,7 +121,7 @@ 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
+#if !defined(BOOST_FILESYSTEM_VERSION) || BOOST_FILESYSTEM_VERSION == 2
 					out.push_back(in.stem());
 #else
 					out.push_back(in.stem().string());
-- 
GitLab