From d23130a5fb430c54bb928dcd4446fd98a2a9173d Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 4 Sep 2007 02:03:55 +0100 Subject: [PATCH] git-compat-util.h: declare mkstemp() before use On MinGW, we roll our own version of mkstemp(). Since xmkstemp() uses it, we need to declare it before that. Signed-off-by: Johannes Schindelin --- git-compat-util.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/git-compat-util.h b/git-compat-util.h index f817c28164..ba5a1a1018 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -314,6 +314,9 @@ static inline FILE *xfdopen(int fd, const char *mode) return stream; } +#ifdef __MINGW32__ +int mkstemp (char *__template); +#endif static inline int xmkstemp(char *template) { int fd; @@ -435,7 +438,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]);