From 62ce811f46a359977286167b5127ab05b75cddca Mon Sep 17 00:00:00 2001
From: "Morten V. Pedersen" <morten@mortenvp.dk>
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
|
b
|
using std::wstring;
|
73 | 73 | const fs::path dot_dot_path(".."); |
74 | 74 | # include <sys/types.h> |
75 | 75 | # include <sys/stat.h> |
76 | | # if !defined(__APPLE__) && !defined(__OpenBSD__) |
| 76 | # if !defined(__APPLE__) && !defined(__OpenBSD__) && !defined(__ANDROID__) |
77 | 77 | # include <sys/statvfs.h> |
78 | 78 | # define BOOST_STATVFS statvfs |
79 | 79 | # define BOOST_STATVFS_F_FRSIZE vfs.f_frsize |
80 | 80 | # else |
81 | 81 | # ifdef __OpenBSD__ |
82 | 82 | # include <sys/param.h> |
| 83 | # elif defined(__ANDROID__) |
| 84 | # include <sys/vfs.h> |
83 | 85 | # endif |
84 | 86 | # include <sys/mount.h> |
85 | 87 | # define BOOST_STATVFS statfs |