Opened 5 years ago
Closed 5 years ago
#13226 closed Bugs (fixed)
getpagesize() is deprecated since 199506L
Reported by: | 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)
Change History (4)
by , 5 years ago
Attachment: | POSIX_C_DEPRECATED.log added |
---|
by , 5 years ago
Attachment: | thread_tss_test.cpp added |
---|
comment:1 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Hi,
develop branch contains now
https://github.com/boostorg/thread/blob/develop/include/boost/thread/pthread/thread_data.hpp#L53
This was introduce (fixed?) in https://github.com/boostorg/thread/commit/24a22b66ef729a645788f13e5127044f867478bc#diff-89f11b13350765704ffcecd2d8e128a1
Would this work for you?
comment:2 by , 5 years ago
Milestone: | To Be Determined → Boost 1.66.0 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
example to compile