+2019-01-08 Jonathan Wakely <jwakely@redhat.com>
+
+ PR libstdc++/88749
+ * src/filesystem/ops.cc (last_write_time): Fix preprocessor condition
+ to match the one that controls whether utimbuf and utime are declared.
+
2019-01-07 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/87787
# include <fcntl.h> // AT_FDCWD, AT_SYMLINK_NOFOLLOW
#endif
#ifdef _GLIBCXX_HAVE_SYS_STAT_H
-# include <sys/stat.h> // stat, utimensat, fchmodat
+# include <sys/stat.h> // stat, utimensat, fchmodat
#endif
#ifdef _GLIBCXX_HAVE_SYS_STATVFS_H
# include <sys/statvfs.h> // statvfs
ec.assign(errno, std::generic_category());
else
ec.clear();
-#elif _GLIBCXX_HAVE_UTIME_H
+#elif _GLIBCXX_USE_UTIME && _GLIBCXX_HAVE_SYS_STAT_H
posix::utimbuf times;
times.modtime = s.count();
times.actime = do_stat(p, ec, [](const auto& st) { return st.st_atime; },