From 62ce811f46a359977286167b5127ab05b75cddca Mon Sep 17 00:00:00 2001 From: "Morten V. Pedersen" Date: Mon, 19 Nov 2012 23:51:13 +0100 Subject: [PATCH] Fix compilation on Android for Boost filesystem --- libs/filesystem/src/operations.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/filesystem/src/operations.cpp b/libs/filesystem/src/operations.cpp index 16a336f..a1504b5 100644 --- a/libs/filesystem/src/operations.cpp +++ b/libs/filesystem/src/operations.cpp @@ -73,13 +73,15 @@ using std::wstring; const fs::path dot_dot_path(".."); # include # include -# if !defined(__APPLE__) && !defined(__OpenBSD__) +# if !defined(__APPLE__) && !defined(__OpenBSD__) && !defined(__ANDROID__) # include # define BOOST_STATVFS statvfs # define BOOST_STATVFS_F_FRSIZE vfs.f_frsize # else # ifdef __OpenBSD__ # include +# elif defined(__ANDROID__) +# include # endif # include # define BOOST_STATVFS statfs -- 1.7.9.5