mirror of https://github.com/libAthena/athena.git
More portable 'utimes'
This commit is contained in:
parent
011496db8b
commit
92d86a2673
|
@ -127,7 +127,7 @@ bool FileInfo::touch() const
|
|||
(void)Athena::io::FileWriter(m_path);
|
||||
return true;
|
||||
}
|
||||
if (utimensat(AT_FDCWD, m_path.c_str(), NULL, 0) < 0) {
|
||||
if (utimes(m_path.c_str(), NULL) < 0) {
|
||||
return false;
|
||||
}
|
||||
#elif defined(_WIN32)
|
||||
|
|
Loading…
Reference in New Issue