From: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
To: Junio C Hamano <gitster@pobox.com>
Cc: GIT Mailing-list <git@vger.kernel.org>, kusmabite@gmail.com
Subject: [PATCH v2] msvc: Fix compilation error due to missing mktemp() declaration
Date: Sat, 01 Jan 2011 20:31:02 +0000 [thread overview]
Message-ID: <4D1F8F06.9090700@ramsay1.demon.co.uk> (raw)
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/mingw.h header.
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
---
Change from v1:
- add #include to compat/mingw.h rather than compat/vcbuild/include/unistd.h
ATB,
Ramsay Jones
compat/mingw.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/compat/mingw.h b/compat/mingw.h
index cafc1eb..1c6bc02 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -1,5 +1,6 @@
#include <winsock2.h>
#include <ws2tcpip.h>
+#include <io.h>
/*
* things that are not available in header files
--
1.7.3
next reply other threads:[~2011-01-01 20:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-01 20:31 Ramsay Jones [this message]
2011-01-11 18:33 ` [PATCH v2] msvc: Fix compilation error due to missing mktemp() declaration Ramsay Jones
2011-01-11 20:14 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D1F8F06.9090700@ramsay1.demon.co.uk \
--to=ramsay@ramsay1.demon.co.uk \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=kusmabite@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).