]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-compat-util.h
msvc: Fix a compiler warning due to an incorrect pointer cast
[thirdparty/git.git] / git-compat-util.h
index 5c596875c2e78a92031915948444971126d91a78..aff627a85a812bb782e68cd27d06eb42d7dac537 100644 (file)
@@ -96,6 +96,7 @@
 #include <sys/poll.h>
 #include <sys/socket.h>
 #include <sys/ioctl.h>
+#include <termios.h>
 #ifndef NO_SYS_SELECT_H
 #include <sys/select.h>
 #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)
 {