Code

MSVC: Add support for building with NO_MMAP
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Sat, 7 Nov 2009 20:10:31 +0000 (20:10 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Nov 2009 01:59:12 +0000 (17:59 -0800)
commitb1b952043f8f909649fdf053c371109c84f9cf56
tree3d99e5d5efd0ddf760b4ccc646444e95c9093189
parentd691d84eedc0f02b4caebbee89149fff18e1db91
MSVC: Add support for building with NO_MMAP

When the NO_MMAP build variable is set, the msvc linker complains:

    error LNK2001: unresolved external symbol _getpagesize

The msvc libraries do not define the getpagesize() function,
so we move the mingw_getpagesize() implementation from the
conditionally built win32mmap.c file to mingw.c.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.c
compat/mingw.h
compat/win32mmap.c