Unverified Commit 592c1562 authored by Kyle Kloberdanz's avatar Kyle Kloberdanz Committed by Kevin Albertson
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 77a18c79
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