Compile fix for MSVC: Include <io.h>
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 31 Oct 2011 19:12:43 +0000 (20:12 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Nov 2011 03:06:03 +0000 (20:06 -0700)
This include is needed for _commit(..) which is used in mingw.h.

Signed-off-by: Vincent van Ravesteijn <vfr@lyx.org>
Acked-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/msvc.h

index a33b01c032b1ab948d87b29447ad0787c86f14f1..aa4b56315ae2488ea656d695f0f660e4dbd745ef 100644 (file)
@@ -4,6 +4,7 @@
 #include <direct.h>
 #include <process.h>
 #include <malloc.h>
+#include <io.h>
 
 /* porting function */
 #define inline __inline