Ticket #8688: 0001-boost-Compile-operations-with-bionic.patch

File 0001-boost-Compile-operations-with-bionic.patch, 1.1 KB (added by Martin Ertsaas <mertsas@…>, 9 years ago)
  • libs/filesystem/src/operations.cpp

    From d41a71455e7c32e83a1612c24c73d1aeb3860d2d Mon Sep 17 00:00:00 2001
    From: Martin Ertsaas <mertsas@cisco.com>
    Date: Fri, 7 Jun 2013 13:12:35 +0200
    Subject: [PATCH] boost: Compile operations with bionic
    
    ---
     libs/filesystem/src/operations.cpp | 6 +++++-
     1 file changed, 5 insertions(+), 1 deletion(-)
    
    diff --git a/libs/filesystem/src/operations.cpp b/libs/filesystem/src/operations.cpp
    index 16a336f..4550487 100644
    a b using std::wstring;  
    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(__BIONIC__)
    7777#     include <sys/statvfs.h>
    7878#     define BOOST_STATVFS statvfs
    7979#     define BOOST_STATVFS_F_FRSIZE vfs.f_frsize
     80#   elif defined(__BIONIC__)
     81#     include <sys/statfs.h>
     82#     define BOOST_STATVFS statfs
     83#     define BOOST_STATVFS_F_FRSIZE vfs.f_bsize
    8084#   else
    8185#     ifdef __OpenBSD__
    8286#     include <sys/param.h>