mirror of
https://github.com/libAthena/athena.git
synced 2025-08-04 03:05:45 +00:00
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…
x
Reference in New Issue
Block a user