Boost C++ Libraries: Ticket #8816: Android: error: fatal error: sys/statvfs.h: No such file or directory https://svn.boost.org/trac10/ticket/8816 <p> Android doesn't have sys/statvfs.h. instead sys/vfs.h should be used. </p> <p> possible fix (libs/filesystem/src/operations.cpp): </p> <pre class="wiki"># if !defined(__APPLE__) &amp;&amp; !defined(__OpenBSD__) &amp;&amp; !defined(__ANDROID__) # include &lt;sys/statvfs.h&gt; # define BOOST_STATVFS statvfs # define BOOST_STATVFS_F_FRSIZE vfs.f_frsize # else # ifdef __ANDROID__ # include &lt;sys/vfs.h&gt; # endif # ifdef __OpenBSD__ # include &lt;sys/param.h&gt; # endif # include &lt;sys/mount.h&gt; # define BOOST_STATVFS statfs # define BOOST_STATVFS_F_FRSIZE static_cast&lt;boost::uintmax_t&gt;(vfs.f_bsize) # endif </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8816 Trac 1.4.3