Opened 5 years ago

Closed 5 years ago

#13226 closed Bugs (fixed)

getpagesize() is deprecated since 199506L

Reported by: claus.klein@… Owned by: viboes
Milestone: Boost 1.66.0 Component: thread
Version: Boost 1.65.0 Severity: Problem
Keywords: Cc:

Description

with -D_POSIX_C_SOURCE=200809L defined, I get the following error:

/Users/clausklein/Workspace/cpp/boost_1_65_1/stage/include/boost/thread/pthread/thread_data.hpp:53:35: error: use of undeclared identifier
      'getpagesize'
          std::size_t page_size = getpagesize();
                                  ^
1 error generated.

it can be prevented by #undef _POSIX_C_SOURCE

Attachments (2)

POSIX_C_DEPRECATED.log (3.3 KB ) - added by claus.klein@… 5 years ago.
thread_tss_test.cpp (733 bytes ) - added by claus.klein@… 5 years ago.
example to compile

Download all attachments as: .zip

Change History (4)

by claus.klein@…, 5 years ago

Attachment: POSIX_C_DEPRECATED.log added

by claus.klein@…, 5 years ago

Attachment: thread_tss_test.cpp added

example to compile

comment:1 by viboes, 5 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:2 by viboes, 5 years ago

Milestone: To Be DeterminedBoost 1.66.0
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.