summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2013-08-21 18:24:42 (GMT)
committerRemko Tronçon <git@el-tramo.be>2013-08-22 20:27:22 (GMT)
commit099c4028d6b357fd1de7e2d6296628c1367bf30d (patch)
tree6a6c3133a328d19518993ccf7982c26b269050e2 /3rdParty/Boost/src/libs/filesystem
parent07e9627cc7556d34c6fa5bd25ac8f34cd975d6bb (diff)
downloadswift-099c4028d6b357fd1de7e2d6296628c1367bf30d.zip
swift-099c4028d6b357fd1de7e2d6296628c1367bf30d.tar.bz2
Add boost/scope_exit.
Change-Id: I6a38e842252aa24f456465d181ccf0aae763abb5
Diffstat (limited to '3rdParty/Boost/src/libs/filesystem')
-rw-r--r--3rdParty/Boost/src/libs/filesystem/src/operations.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/3rdParty/Boost/src/libs/filesystem/src/operations.cpp b/3rdParty/Boost/src/libs/filesystem/src/operations.cpp
index 16a336f..d066e40 100644
--- a/3rdParty/Boost/src/libs/filesystem/src/operations.cpp
+++ b/3rdParty/Boost/src/libs/filesystem/src/operations.cpp
@@ -73,10 +73,14 @@ using std::wstring;
const fs::path dot_dot_path("..");
# include <sys/types.h>
# include <sys/stat.h>
-# if !defined(__APPLE__) && !defined(__OpenBSD__)
+# if !defined(__APPLE__) && !defined(__OpenBSD__) && !defined(ANDROID)
# include <sys/statvfs.h>
# define BOOST_STATVFS statvfs
# define BOOST_STATVFS_F_FRSIZE vfs.f_frsize
+# elif defined (ANDROID)
+# include <sys/vfs.h>
+# define BOOST_STATVFS statfs
+# define BOOST_STATVFS_F_FRSIZE static_cast<boost::uintmax_t>(vfs.f_bsize)
# else
# ifdef __OpenBSD__
# include <sys/param.h>