Skip to content

Commit

Permalink
Compile fix for MSVC: Include <io.h>
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
vfr-nl authored and gitster committed Nov 1, 2011
1 parent cfc755d commit 7b05949
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compat/msvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <direct.h>
#include <process.h>
#include <malloc.h>
#include <io.h>

/* porting function */
#define inline __inline
Expand Down

0 comments on commit 7b05949

Please sign in to comment.