aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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