From a9601507cf0bc6d987117dfcd0e3d98873f4ab61 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Fri, 17 Aug 2007 12:27:54 +0200 Subject: [PATCH] Move MinGW specific declaration of mkstmp() up to avoid warnings. The declaration is needed in the xmkstmp() implementation. --- git-compat-util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/git-compat-util.h b/git-compat-util.h index 219ac871b4..75b2a4bc9b 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -54,6 +54,8 @@ #include #include #include +#else +int mkstemp (char *__template); #endif #include #include @@ -435,7 +437,6 @@ int kill(pid_t pid, int sig); unsigned int sleep (unsigned int __seconds); const char *inet_ntop(int af, const void *src, char *dst, size_t cnt); -int mkstemp (char *__template); int gettimeofday(struct timeval *tv, void *tz); int pipe(int filedes[2]);