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;
|
73 | 73 | const fs::path dot_dot_path(".."); |
74 | 74 | # include <sys/types.h> |
75 | 75 | # include <sys/stat.h> |
76 | | # if !defined(__APPLE__) && !defined(__OpenBSD__) |
| 76 | # if !defined(__APPLE__) && !defined(__OpenBSD__) && !defined(__BIONIC__) |
77 | 77 | # include <sys/statvfs.h> |
78 | 78 | # define BOOST_STATVFS statvfs |
79 | 79 | # 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 |
80 | 84 | # else |
81 | 85 | # ifdef __OpenBSD__ |
82 | 86 | # include <sys/param.h> |