Commit 592c156
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-45051 parent 77a18c7 commit 592c156
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
114 | | - | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
0 commit comments