path: root/compat/vcbuild/include
diff options
authorRamsay Jones <>2013-01-31 18:28:35 (GMT)
committerJunio C Hamano <>2013-02-25 20:39:56 (GMT)
commit41f2999180f5a58f2a4214d896359c1587c9024f (patch)
treec07fe18fe51bd56218d49e3a32c0ae85810314da /compat/vcbuild/include
parent4dac0679feaebbf6545daec14480cf6b94cb74ed (diff)
msvc: Fix compilation errors caused by poll.h emulation
Commit 0f77dea9 ("mingw: move poll out of sys-folder", 24-10-2011), along with other commits in the 'ef/mingw-upload-archive' branch (see commit 7406aa20), effectively reintroduced the same problem addressed by commit 56fb3ddc ("msvc: Fix compilation errors in compat/win32/sys/poll.c", 04-12-2010). In order to fix the compilation errors, we use the same solution adopted in that earlier commit. In particular, we set _WIN32_WINNT to 0x0502 (which would target Windows Server 2003) prior to including the winsock2.h header file. Also, we delete the compat/vcbuild/include/sys/poll.h header file, since it is now redundant and it's presence may cause some confusion. Signed-off-by: Ramsay Jones <> Tested-by: Johannes Sixt <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'compat/vcbuild/include')
1 files changed, 0 insertions, 1 deletions
diff --git a/compat/vcbuild/include/sys/poll.h b/compat/vcbuild/include/sys/poll.h
deleted file mode 100644
index 0d8552a..0000000
--- a/compat/vcbuild/include/sys/poll.h
+++ /dev/null
@@ -1 +0,0 @@
-/* Intentionally empty file to support building git with MSVC */