Modify

Opened 4 months ago

Closed 4 months 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@… 4 months ago.
thread_tss_test.cpp (733 bytes) - added by claus.klein@… 4 months ago.
example to compile

Download all attachments as: .zip

Change History (4)

Changed 4 months ago by claus.klein@…

Attachment: POSIX_C_DEPRECATED.log added

Changed 4 months ago by claus.klein@…

Attachment: thread_tss_test.cpp added

example to compile

comment:1 Changed 4 months ago by viboes

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:2 Changed 4 months ago by viboes

Milestone: To Be DeterminedBoost 1.66.0
Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain viboes.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.