Skip to content

Commit a3c7388

Browse files
committed
Restore support with latest Cosmopolitan
1 parent f93880d commit a3c7388

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

blink/map.c

+4
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ static long GetSystemPageSize(void) {
4343
return 4096;
4444
#else
4545
long z;
46+
#ifdef _SC_GRANSIZE
47+
unassert((z = sysconf(_SC_GRANSIZE)) > 0);
48+
#else
4649
unassert((z = sysconf(_SC_PAGESIZE)) > 0);
50+
#endif
4751
unassert(IS2POW(z));
4852
return MAX(4096, z);
4953
#endif

0 commit comments

Comments
 (0)