summaryrefslogtreecommitdiff
path: root/compat/msvc.h
diff options
context:
space:
mode:
authorVincent van Ravesteijn <vfr@lyx.org>2011-10-31 19:12:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-11-01 03:06:03 (GMT)
commit7b05949be007952c5f7708aac50e731534740574 (patch)
treeed508a2c20c32ab69cac588dce806e66742dbcdf /compat/msvc.h
parentcfc755d30e2f9d92f19af10ba2d810281aa94c99 (diff)
downloadgit-7b05949be007952c5f7708aac50e731534740574.zip
git-7b05949be007952c5f7708aac50e731534740574.tar.gz
git-7b05949be007952c5f7708aac50e731534740574.tar.bz2
Compile fix for MSVC: Include <io.h>
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>
Diffstat (limited to 'compat/msvc.h')
-rw-r--r--compat/msvc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/compat/msvc.h b/compat/msvc.h
index a33b01c..aa4b563 100644
--- a/compat/msvc.h
+++ b/compat/msvc.h
@@ -4,6 +4,7 @@
#include <direct.h>
#include <process.h>
#include <malloc.h>
+#include <io.h>
/* porting function */
#define inline __inline