diff options
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2009-11-07 21:10:31 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-09 02:59:12 +0100 |
commit | b1b952043f8f909649fdf053c371109c84f9cf56 (patch) | |
tree | 3d99e5d5efd0ddf760b4ccc646444e95c9093189 /compat/mingw.h | |
parent | Makefile: keep MSVC and Cygwin configuration separate (diff) | |
download | git-b1b952043f8f909649fdf053c371109c84f9cf56.tar.xz git-b1b952043f8f909649fdf053c371109c84f9cf56.zip |
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>
Diffstat (limited to 'compat/mingw.h')
-rw-r--r-- | compat/mingw.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/mingw.h b/compat/mingw.h index 5b5258bceb..26c402733e 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -166,7 +166,7 @@ int mingw_connect(int sockfd, struct sockaddr *sa, size_t sz); int mingw_rename(const char*, const char*); #define rename mingw_rename -#ifdef USE_WIN32_MMAP +#if defined(USE_WIN32_MMAP) || defined(_MSC_VER) int mingw_getpagesize(void); #define getpagesize mingw_getpagesize #endif |