Unverified Commit a73297b3 authored by Kyle Kloberdanz's avatar Kyle Kloberdanz Committed by GitHub
Browse files

CDRIVER-4505 Fix build on MacOS due to undeclared getpagesize (#1136)

Fix build on MacOS due to undeclared getpagesize

CDRIVER-4505

It appears that getpagesize has been deprecated on newer MacOS versions.
We can see that POSIX version 7 (link below) has removed getpagesize
altogether from the standard, so even including unistd.h does not solve
this problem on newer MacOS versions.

Please see here at section
B.3.2 System Interfaces Removed in the Previous Version:
https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xsh_chap03.html

Relevant stackoverflow:
https://stackoverflow.com/a/37193970

Jira:
https://jira.mongodb.org/browse/CDRIVER-4505
parent 0af86d25
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment