Opened 10 years ago

Last modified 10 years ago

#7224 new Patches

Fix endian.hpp and Filesystem on Android

Reported by: roman.donchenko@… Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

The attached patch allows to compile most of Boost for Android. Two changes are required:

1) Tell boost/detail/endian.hpp that Android has <endian.h> 2) Android doesn't have statvfs, so make libs/filesystem/src/operations.cpp use statfs instead.

Attachments (2)

boost-android.patch (1.3 KB ) - added by roman.donchenko@… 10 years ago.
0001-Fix-compilation-on-Android-for-Boost-filesystem.patch (1.1 KB ) - added by Morten Videbæk Pedersen <morten@…> 10 years ago.

Download all attachments as: .zip

Change History (5)

by roman.donchenko@…, 10 years ago

Attachment: boost-android.patch added

comment:1 by viboes, 10 years ago

Component: Nonefilesystem
Owner: set to Beman Dawes

comment:2 by Morten Videbæk Pedersen <morten@…>, 10 years ago

Would be nice to have the patch for boost::filesystem on Android included. I can verify that the above patch works.

by Morten Videbæk Pedersen <morten@…>, 10 years ago

comment:3 by Morten Videbæk Pedersen <morten@…>, 10 years ago

I've just attached a patch only for the filesystem issue.

Note: See TracTickets for help on using tickets.