6 # include <sys/types.h>
10 # include <sys/times.h>
11 @@ -1051,12 +1050,12 @@ void applySavedTimeInfoToOutputFile ( Ch
15 - struct utimbuf uTimBuf;
16 + struct timespec uTimBuf[2] = {};
18 - uTimBuf.actime = fileMetaInfo.st_atime;
19 - uTimBuf.modtime = fileMetaInfo.st_mtime;
20 + uTimBuf[0].tv_sec = fileMetaInfo.st_atime;
21 + uTimBuf[1].tv_sec = fileMetaInfo.st_mtime;
23 - retVal = utime ( dstName, &uTimBuf );
24 + retVal = utimensat ( AT_FDCWD, dstName, uTimBuf , 0 );
25 ERROR_IF_NOT_ZERO ( retVal );