[Boost-bugs] [Boost C++ Libraries] #8816: Android: error: fatal error: sys/statvfs.h: No such file or directory

Subject: [Boost-bugs] [Boost C++ Libraries] #8816: Android: error: fatal error: sys/statvfs.h: No such file or directory
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-07-12 11:13:48


#8816: Android: error: fatal error: sys/statvfs.h: No such file or directory
------------------------------+------------------------
 Reporter: mik01@… | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
------------------------------+------------------------
 Android doesn't have sys/statvfs.h. instead sys/vfs.h should be used.

 possible fix (libs/filesystem/src/operations.cpp):

 {{{
 # 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 __ANDROID__
 # include <sys/vfs.h>
 # endif
 # ifdef __OpenBSD__
 # include <sys/param.h>
 # endif
 # include <sys/mount.h>
 # define BOOST_STATVFS statfs
 # define BOOST_STATVFS_F_FRSIZE
 static_cast<boost::uintmax_t>(vfs.f_bsize)
 # endif
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8816>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:13 UTC