summaryrefslogtreecommitdiffstats
path: root/compat/mingw.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-11-21 08:48:11 +0100
committerJunio C Hamano <gitster@pobox.com>2009-11-21 08:48:11 +0100
commit7a4383cf13819cd2ef00f0d60318aad3f1813117 (patch)
tree7909507115206e773783940871aeb380df778d07 /compat/mingw.h
parentMerge branch 'rj/maint-simplify-cygwin-makefile' (diff)
parentMSVC: Add support for building with NO_MMAP (diff)
downloadgit-7a4383cf13819cd2ef00f0d60318aad3f1813117.tar.xz
git-7a4383cf13819cd2ef00f0d60318aad3f1813117.zip
Merge branch 'rj/cygwin-msvc'
* rj/cygwin-msvc: MSVC: Add support for building with NO_MMAP Makefile: keep MSVC and Cygwin configuration separate
Diffstat (limited to 'compat/mingw.h')
-rw-r--r--compat/mingw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index 6907345f90..51993ef114 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -187,7 +187,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