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 <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2007-09-04 02:03:55 +01:00
parent 54d99a7724
commit d23130a5fb

View File

@@ -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]);