Ticket #7224: boost-android.patch

File boost-android.patch, 1.3 KB (added by roman.donchenko@…, 10 years ago)
  • boost/detail/endian.hpp

     
    3131// GNU libc offers the helpful header <endian.h> which defines
    3232// __BYTE_ORDER
    3333
    34 #if defined (__GLIBC__)
     34#if defined (__GLIBC__) || defined (__ANDROID__)
    3535# include <endian.h>
    3636# if (__BYTE_ORDER == __LITTLE_ENDIAN)
    3737#  define BOOST_LITTLE_ENDIAN
  • libs/filesystem/src/operations.cpp

     
    7373    const fs::path dot_dot_path("..");
    7474#   include <sys/types.h>
    7575#   include <sys/stat.h>
    76 #   if !defined(__APPLE__) && !defined(__OpenBSD__)
     76#   if !defined(__APPLE__) && !defined(__OpenBSD__) && !defined(__ANDROID__)
    7777#     include <sys/statvfs.h>
    7878#     define BOOST_STATVFS statvfs
    7979#     define BOOST_STATVFS_F_FRSIZE vfs.f_frsize
     
    8181#     ifdef __OpenBSD__
    8282#     include <sys/param.h>
    8383#     endif
     84#     ifdef __ANDROID__
     85#     include <sys/vfs.h>
     86#     endif
    8487#     include <sys/mount.h>
    8588#     define BOOST_STATVFS statfs
    8689#     define BOOST_STATVFS_F_FRSIZE static_cast<boost::uintmax_t>(vfs.f_bsize)