https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95012
--- Comment #3 from xantares09 at hotmail dot com --- mingw does not define getpagesize as far as I can tell with: $ grep -nr getpagesize /usr/i686-w64-mingw32/include/ but gcc seems to detect it (9.x and 10.x): checking for getpagesize... (cached) yes maybe it relies on its own provided getpagesize function: gcc/system.h:479:#if defined (HAVE_DECL_GETPAGESIZE) && !HAVE_DECL_GETPAGESIZE gcc/system.h:480:extern int getpagesize (void);