Martin Lambers wrote: > > The function from libgcc.a is maybe not correct in all > > situations (think of 64-bit Windows), therefore I would use the > > replacement also on mingw. > > OK, I attached a patch.
Thanks. I applied your patch, adding a lib/getpagesize.c file ("git diff" omits added files, so one often forgets to send them) and a ChangeLog entry. Bruno 2007-12-10 Martin Lambers <[EMAIL PROTECTED]> Override getpagesize on mingw. * lib/getpagesize.c: New file. * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw. * modules/getpagesize (Files): Add lib/getpagesize.c. * lib/unistd.in.h (getpagesize): Declare if we are using a replacement. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETPAGESIZE. * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.