mirror of
https://github.com/libAthena/athena.git
synced 2025-08-10 22:19:14 +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);
|
(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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user