[Bug libbacktrace/95012] [mingw/gcc10.1] mmapio.c:69:14: error: implicit declaration of function ‘getpagesize’

xantares09 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Sun May 10 07:08:29 GMT 2020


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);


More information about the Gcc-bugs mailing list