git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] msvc: Fix compilation error due to missing mktemp() declaration
@ 2010-12-23 19:05 Ramsay Jones
  2010-12-24  1:00 ` Erik Faye-Lund
  0 siblings, 1 reply; 5+ messages in thread
From: Ramsay Jones @ 2010-12-23 19:05 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: GIT Mailing-list, kusmabite


Commit d1b6e6e (win32: use our own dirent.h, 2010-11-23) removed
the compat/vcbuild/include/dirent.h compatibility header file.
This file, among other things, included the <io.h> system header
file which provides the declaration of the mktemp() function.

In order to fix the compilation error, we add an include directive
for <io.h> to the compat/vcbuild/include/unistd.h header. (The
MinGW build includes <io.h> from it's <unistd.h> header too.)

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
---
 compat/vcbuild/include/unistd.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/compat/vcbuild/include/unistd.h b/compat/vcbuild/include/unistd.h
index b14fcf9..a61160f 100644
--- a/compat/vcbuild/include/unistd.h
+++ b/compat/vcbuild/include/unistd.h
@@ -1,6 +1,8 @@
 #ifndef _UNISTD_
 #define _UNISTD_
 
+#include <io.h>
+
 /* Win32 define for porting git*/
 
 #ifndef _MODE_T_
-- 
1.7.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-01-01 20:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-23 19:05 [PATCH] msvc: Fix compilation error due to missing mktemp() declaration Ramsay Jones
2010-12-24  1:00 ` Erik Faye-Lund
2010-12-30 19:33   ` Ramsay Jones
2010-12-30 21:47     ` Erik Faye-Lund
2011-01-01 20:26       ` Ramsay Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).