We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77a18c7 commit 592c156Copy full SHA for 592c156
src/libmongoc/src/mongoc/mongoc-counters.c
@@ -24,6 +24,7 @@
24
#ifdef BSON_OS_UNIX
25
#include <sys/mman.h>
26
#include <sys/shm.h>
27
+#include <unistd.h>
28
#endif
29
30
#ifdef _MSC_VER
@@ -111,7 +112,7 @@ mongoc_counters_calc_size (void)
111
112
(n_cpu * n_groups * sizeof (mongoc_counter_slots_t)));
113
114
- return BSON_MAX (getpagesize (), size);
115
+ return BSON_MAX (sysconf (_SC_PAGESIZE), size);
116
#else
117
return size;
118
0 commit comments