From 18b1b16b441a51be0044f85953187e99014a3e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Sch=C3=BCmann?= Date: Tue, 4 Sep 2018 21:52:17 +0200 Subject: [PATCH] Fixed compile error on g++ 7.3.0 --- filesystem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filesystem.h b/filesystem.h index 0af2481..1e48a48 100644 --- a/filesystem.h +++ b/filesystem.h @@ -3437,7 +3437,7 @@ inline void last_write_time(const path& p, file_time_type new_time, std::error_c #endif #endif #else - struct ::timespec times[2] = {{.tv_nsec = UTIME_OMIT}, {.tv_sec = std::chrono::duration_cast(d).count(), .tv_nsec = std::chrono::duration_cast(d).count() % 1000000000}}; + struct ::timespec times[2] = {{.tv_sec = 0, .tv_nsec = UTIME_OMIT}, {.tv_sec = std::chrono::duration_cast(d).count(), .tv_nsec = std::chrono::duration_cast(d).count() % 1000000000}}; if (::utimensat(AT_FDCWD, p.c_str(), times, AT_SYMLINK_NOFOLLOW) != 0) { ec = std::error_code(errno, std::system_category()); }