Merge pull request #1815 from facebook/zlibwrap

make zlibWrapper strict ISO-C90 compatible
This commit is contained in:
Yann Collet authored and GitHub committed 2019-10-16 16:45:15 -07:00
commit 19741c7d99
11 files changed
+90 -79

No files matched your search

+2 -1
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