Opened 10 years ago

Closed 10 years ago

#7716 closed Patches (fixed)

Fix issue with PAGE_SIZE undeclared on Android

Reported by: Morten Videbæk Pedersen <morten@…> Owned by: viboes
Milestone: Boost 1.53.0 Component: thread
Version: Boost 1.52.0 Severity: Problem
Keywords: Cc:

Description

Compiling boost::thread in boost 1.52.0 results in the following error:

/boost-lib/boost/thread/pthread/thread_data.hpp: In member function 'void boost::thread_attributes::set_stack_size(std::size_t)':
/boost-lib/boost/thread/pthread/thread_data.hpp:49:20: error: 'PAGE_SIZE' was not declared in this scope

The problem can be tracked to the following issue: http://code.google.com/p/android/issues/detail?id=39983

The workaround is for Android to manually include the asm/page.h header. See attached patch.

Attachments (1)

0001-Fixes-issues-with-missing-include-on-Android.patch (749 bytes ) - added by Morten Videbæk Pedersen <morten@…> 10 years ago.

Download all attachments as: .zip

Change History (3)

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

comment:1 by viboes, 10 years ago

Milestone: To Be DeterminedBoost 1.53.0
Owner: changed from Anthony Williams to viboes
Status: newassigned

Committed in trunk [81490].

comment:2 by viboes, 10 years ago

Resolution: fixed
Status: assignedclosed

Committed revision [81667].

Note: See TracTickets for help on using tickets.