X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-compat-util.h;h=aff627a85a812bb782e68cd27d06eb42d7dac537;hb=6360d343af9acf7366be6ff89740f5077e12277b;hp=5c596875c2e78a92031915948444971126d91a78;hpb=73d66323ac78c750ba42fef23b1cb8fd2110e023;p=git.git diff --git a/git-compat-util.h b/git-compat-util.h index 5c596875c..aff627a85 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -96,6 +96,7 @@ #include #include #include +#include #ifndef NO_SYS_SELECT_H #include #endif @@ -198,7 +199,7 @@ extern void warning(const char *err, ...) __attribute__((format (printf, 1, 2))) extern void set_die_routine(NORETURN_PTR void (*routine)(const char *err, va_list params)); extern int prefixcmp(const char *str, const char *prefix); -extern time_t tm_to_time_t(const struct tm *tm); +extern int suffixcmp(const char *str, const char *suffix); static inline const char *skip_prefix(const char *str, const char *prefix) {