Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
compat: add a mkstemps() compatibility function
[gitweb.git]
/
git-compat-util.h
diff --git
a/git-compat-util.h
b/git-compat-util.h
index c7cf2d5d9cdbfd4ed20c8b8ea49a36af7c138a4e..f7217ad4309b42f65c3f4beae4f8d0c5b501e59d 100644
(file)
--- a/
git-compat-util.h
+++ b/
git-compat-util.h
@@
-232,6
+232,11
@@
extern int gitsetenv(const char *, const char *, int);
extern char *gitmkdtemp(char *);
#endif
+#ifdef NO_MKSTEMPS
+#define mkstemps gitmkstemps
+extern int gitmkstemps(char *, int);
+#endif
+
#ifdef NO_UNSETENV
#define unsetenv gitunsetenv
extern void gitunsetenv(const char *);