Index: boost/detail/endian.hpp =================================================================== --- boost/detail/endian.hpp (revision 79952) +++ boost/detail/endian.hpp (working copy) @@ -31,7 +31,7 @@ // GNU libc offers the helpful header which defines // __BYTE_ORDER -#if defined (__GLIBC__) +#if defined (__GLIBC__) || defined (__ANDROID__) # include # if (__BYTE_ORDER == __LITTLE_ENDIAN) # define BOOST_LITTLE_ENDIAN Index: libs/filesystem/src/operations.cpp =================================================================== --- libs/filesystem/src/operations.cpp (revision 79952) +++ libs/filesystem/src/operations.cpp (working copy) @@ -73,7 +73,7 @@ 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 @@ -81,6 +81,9 @@ # ifdef __OpenBSD__ # include # endif +# ifdef __ANDROID__ +# include +# endif # include # define BOOST_STATVFS statfs # define BOOST_STATVFS_F_FRSIZE static_cast(vfs.f_bsize)