aboutsummaryrefslogtreecommitdiff
path: root/libbutl/filesystem.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-05-02 12:54:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-05-02 12:54:30 +0200
commit8a71fa90ff764caeb9a22c5b8d59dec2ce501797 (patch)
tree10c104b08eeef5edf57e8f8b86588d43f44fa051 /libbutl/filesystem.cxx
parent5666053da046b94f8fd7bae0b6e35196347ce8be (diff)
Clang's libc++ workaround
Diffstat (limited to 'libbutl/filesystem.cxx')
-rw-r--r--libbutl/filesystem.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/libbutl/filesystem.cxx b/libbutl/filesystem.cxx
index 6a64073..b6b6b5b 100644
--- a/libbutl/filesystem.cxx
+++ b/libbutl/filesystem.cxx
@@ -1229,7 +1229,14 @@ namespace butl
bool self_;
bool follow_symlinks_;
preopen preopen_;
+
+ // @@ Some issue with libc++ (reproducible on FreeBSD 11 with Clang 3.8).
+ //
+#ifdef _LIBCPP_VERSION
+ std::vector<pair<dir_iterator, dir_path>> iters_;
+#else
small_vector<pair<dir_iterator, dir_path>, 1> iters_;
+#endif
};
// Search for paths matching the pattern and call the specified function for