More portable 'utimes'

This commit is contained in:
Jack Andersen 2015-05-20 19:14:44 -10:00
parent 011496db8b
commit 92d86a2673
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ bool FileInfo::touch() const
(void)Athena::io::FileWriter(m_path); (void)Athena::io::FileWriter(m_path);
return true; return true;
} }
if (utimensat(AT_FDCWD, m_path.c_str(), NULL, 0) < 0) { if (utimes(m_path.c_str(), NULL) < 0) {
return false; return false;
} }
#elif defined(_WIN32) #elif defined(_WIN32)