1
0
mirror of https://github.com/git/git.git synced 2025-03-23 17:16:41 +00:00
git/compat
Ramsay Jones 56fb3ddc89 msvc: Fix compilation errors in compat/win32/sys/poll.c
The msvc winsock2.h header file conditionally defines or declares
poll() related symbols which cause many macro redefinition errors,
a struct type redefinition error and syntax errors. These symbols
are defined in support of the WSAPoll() API, new in Windows Vista,
when the symbol _WIN32_WINNT is defined and _WIN32_WINNT >= 0x0600.

In order to avoid the compilation errors, we set _WIN32_WINNT to
0x0502 (which would target Windows Server 2003) prior to including
the winsock2.h header file.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Acked-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2010-12-09 11:13:55 -08:00
..
2009-04-22 19:03:39 -07:00
2008-09-30 14:30:06 -07:00
2009-03-02 18:28:06 -08:00
2010-11-04 16:53:51 -07:00
2010-11-04 16:53:51 -07:00
2007-06-07 00:04:01 -07:00
2009-09-18 20:00:42 -07:00
2010-08-14 19:35:38 -07:00
2009-09-18 20:00:42 -07:00