From 92d86a26733ec76742829ab754f065136fa8ee0f Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Wed, 20 May 2015 19:14:44 -1000 Subject: [PATCH] More portable 'utimes' --- src/Athena/FileInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Athena/FileInfo.cpp b/src/Athena/FileInfo.cpp index 5d89d0e..f37fd7b 100644 --- a/src/Athena/FileInfo.cpp +++ b/src/Athena/FileInfo.cpp @@ -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)