summaryrefslogtreecommitdiff
path: root/compat/win32
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-12-16 12:55:36 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-12-16 12:55:36 -0800
commitb5c6aac01baf9164e08915b348490710e83119f9 (patch)
tree4099aab13b34925e45a6b57bb0af30288a22739e /compat/win32
parentMerge branch 'nd/extended-sha1-relpath' (diff)
parentmsvc: Fix macro redefinition warnings (diff)
downloadtgif-b5c6aac01baf9164e08915b348490710e83119f9.tar.xz
Merge branch 'rj/msvc-fix'
* rj/msvc-fix: msvc: Fix macro redefinition warnings msvc: Fix build by adding missing INTMAX_MAX define msvc: git-daemon.exe: Fix linker "unresolved externals" error msvc: Fix compilation errors in compat/win32/sys/poll.c
Diffstat (limited to 'compat/win32')
-rw-r--r--compat/win32/sys/poll.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/compat/win32/sys/poll.c b/compat/win32/sys/poll.c
index 7e74ebe59a..708a6c9bec 100644
--- a/compat/win32/sys/poll.c
+++ b/compat/win32/sys/poll.c
@@ -34,6 +34,9 @@
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
# define WIN32_NATIVE
+# if defined (_MSC_VER)
+# define _WIN32_WINNT 0x0502
+# endif
# include <winsock2.h>
# include <windows.h>
# include <io.h>