diff options
Diffstat (limited to 'archive-tar.c')
-rw-r--r-- | archive-tar.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/archive-tar.c b/archive-tar.c index 380e3aedd2..319a5b1c7c 100644 --- a/archive-tar.c +++ b/archive-tar.c @@ -27,9 +27,12 @@ static int write_tar_filter_archive(const struct archiver *ar, */ #if ULONG_MAX == 0xFFFFFFFF #define USTAR_MAX_SIZE ULONG_MAX -#define USTAR_MAX_MTIME ULONG_MAX #else -#define USTAR_MAX_SIZE 077777777777UL +#define USTAR_MAX_SIZE 077777777777ULL +#endif +#if TIME_MAX == 0xFFFFFFFF +#define USTAR_MAX_MTIME TIME_MAX +#else #define USTAR_MAX_MTIME 077777777777UL #endif |