Created
November 14, 2012 19:08
-
-
Save jpihl/4074071 to your computer and use it in GitHub Desktop.
Use this to compile boost 1.52 with the android ndk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <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 | |
# else | |
# ifdef __OpenBSD__ | |
# include <sys/param.h> | |
+# elif defined(__ANDROID__) | |
+# include <sys/vfs.h> | |
# endif | |
# include <sys/mount.h> | |
# define BOOST_STATVFS statfs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment