From: Ramsay Jones Date: Thu, 23 Dec 2010 19:05:53 GMT Subject: [PATCH] msvc: Fix compilation error due to missing mktemp() declaration Message-ID: <4D139D91.8080503@ramsay1.demon.co.uk> 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 system header file which provides the declaration of the mktemp() function. In order to fix the compilation error, we add an include directive for to the compat/vcbuild/include/unistd.h header. (The MinGW build includes from it's header too.) Signed-off-by: Ramsay Jones --- 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 + /* Win32 define for porting git*/ #ifndef _MODE_T_ -- 1.7.3