From 5ef7108d620a00ce5b2f6997c8b6ffc0708467d6 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sat, 21 Feb 2015 14:14:45 +0000 Subject: Hide all uses of boost filesystem in fs.cpp. Use readdir as an alternate implementation for Unix and add some feature checks so a boost-free build of the tests and command line are possible again. --- src/lib/entropy/proc_walk/proc_walk.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/lib/entropy/proc_walk') diff --git a/src/lib/entropy/proc_walk/proc_walk.cpp b/src/lib/entropy/proc_walk/proc_walk.cpp index 616c76ea3..55affda40 100644 --- a/src/lib/entropy/proc_walk/proc_walk.cpp +++ b/src/lib/entropy/proc_walk/proc_walk.cpp @@ -43,11 +43,6 @@ class Directory_Walker : public File_Descriptor_Source int next_fd(); private: - void add_directory(const std::string& dirname) - { - m_dirlist.push_back(dirname); - } - std::pair get_next_dirent(); std::pair m_cur_dir; @@ -99,7 +94,7 @@ int Directory_Walker::next_fd() if(S_ISDIR(stat_buf.st_mode)) { - add_directory(full_path); + m_dirlist.push_back(full_path); } else if(S_ISREG(stat_buf.st_mode) && (stat_buf.st_mode & S_IROTH)) { -- cgit v1.2.3