Skip to content

Commit

Permalink
Restore support with latest Cosmopolitan
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Jul 20, 2024
1 parent f93880d commit a3c7388
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blink/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ static long GetSystemPageSize(void) {
return 4096;
#else
long z;
#ifdef _SC_GRANSIZE
unassert((z = sysconf(_SC_GRANSIZE)) > 0);
#else
unassert((z = sysconf(_SC_PAGESIZE)) > 0);
#endif
unassert(IS2POW(z));
return MAX(4096, z);
#endif
Expand Down

0 comments on commit a3c7388

Please sign in to comment.