1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

Merge pull request #1815 from facebook/zlibwrap

make zlibWrapper strict ISO-C90 compatible
This commit is contained in:
Yann Collet
2019-10-16 16:45:15 -07:00
committed by GitHub
11 changed files with 90 additions and 79 deletions

View File

@ -72,7 +72,8 @@ int UTIL_setFileStat(const char *filename, stat_t *statbuf)
#else
{
/* (atime, mtime) */
struct timespec timebuf[2] = { {0, UTIME_NOW}, statbuf->st_mtim };
struct timespec timebuf[2] = { {0, UTIME_NOW} };
timebuf[1] = statbuf->st_mtim;
res += utimensat(AT_FDCWD, filename, timebuf, 0);
}
#endif