diff --git a/test_utils/test_common.h b/test_utils/test_common.h index 0f93b55e2..f7a62b480 100644 --- a/test_utils/test_common.h +++ b/test_utils/test_common.h @@ -146,6 +146,10 @@ #include "archive_platform_xattr.h" +#ifndef suseconds_t + typedef long suseconds_t; +#endif + /* * Redefine DEFINE_TEST for use in defining the test functions. */ @@ -313,7 +317,12 @@ int assertion_non_empty_file(const char *, int, const char *); int assertion_set_nodump(const char *, int, const char *); int assertion_text_file_contents(const char *, int, const char *buff, const char *f); int assertion_umask(const char *, int, int); + +#if !defined(_WIN32) || defined(__CYGWIN__) int assertion_utimes(const char *, int, const char *, time_t, suseconds_t, time_t, suseconds_t); +#else +int assertion_utimes(const char *, int, const char *, time_t, long, time_t, long); +#endif int assertion_version(const char*, int, const char *, const char *); void skipping_setup(const char *, int);