compat: some mkdir() do not like a slash at the end
[gitweb.git] / git-compat-util.h
index 35b095e8ae989ae02228f814528b43d5bd026aab..34f040f59551c13b5e7c72bab12b8082b37a03ab 100644 (file)
 #define probe_utf8_pathname_composition(a,b)
 #endif
 
+#ifdef MKDIR_WO_TRAILING_SLASH
+#define mkdir(a,b) compat_mkdir_wo_trailing_slash((a),(b))
+extern int compat_mkdir_wo_trailing_slash(const char*, mode_t);
+#endif
+
 #ifndef NO_LIBGEN_H
 #include <libgen.h>
 #else