Ticket #7224: 0001-Fix-compilation-on-Android-for-Boost-filesystem.patch

File 0001-Fix-compilation-on-Android-for-Boost-filesystem.patch, 1.1 KB (added by Morten Videbæk Pedersen <morten@…>, 10 years ago)
  • libs/filesystem/src/operations.cpp

    From 62ce811f46a359977286167b5127ab05b75cddca Mon Sep 17 00:00:00 2001
    From: "Morten V. Pedersen" <morten@mortenvp.dk>
    Date: Mon, 19 Nov 2012 23:51:13 +0100
    Subject: [PATCH] Fix compilation on Android for Boost filesystem
    
    ---
     libs/filesystem/src/operations.cpp |    4 +++-
     1 file changed, 3 insertions(+), 1 deletion(-)
    
    diff --git a/libs/filesystem/src/operations.cpp b/libs/filesystem/src/operations.cpp
    index 16a336f..a1504b5 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(__ANDROID__)
    7777#     include <sys/statvfs.h>
    7878#     define BOOST_STATVFS statvfs
    7979#     define BOOST_STATVFS_F_FRSIZE vfs.f_frsize
    8080#   else
    8181#     ifdef __OpenBSD__
    8282#     include <sys/param.h>
     83#     elif defined(__ANDROID__)
     84#     include <sys/vfs.h>
    8385#     endif
    8486#     include <sys/mount.h>
    8587#     define BOOST_STATVFS statfs