diff --git a/git-compat-util.h b/git-compat-util.h
index 591244351ec4e410ea3b7f891d0de2f33a5aff7a..73968e02b024f22068eb5500033f7a2f41d31e8f 100644 (file)
--- a/git-compat-util.h
+++ b/git-compat-util.h
extern FILE *git_fopen(const char*, const char*);
#endif
+#ifdef SNPRINTF_RETURNS_BOGUS
+#define snprintf git_snprintf
+extern int git_snprintf(char *str, size_t maxsize,
+ const char *format, ...);
+#define vsnprintf git_vsnprintf
+extern int git_vsnprintf(char *str, size_t maxsize,
+ const char *format, va_list ap);
+#endif
+
#ifdef __GLIBC_PREREQ
#if __GLIBC_PREREQ(2, 1)
#define HAVE_STRCHRNUL