aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-tools_gn_src_base_files_file__posix.cc
blob: 26958b7bf8f124814e51e9ca6bc8a338abeaf7c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- tools/gn/src/base/files/file_posix.cc.orig	2020-03-16 18:48:21 UTC
+++ tools/gn/src/base/files/file_posix.cc
@@ -372,7 +372,7 @@ void File::DoInitialize(const FilePath& path, uint32_t
 bool File::Flush() {
   DCHECK(IsValid());
 
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
   return !HANDLE_EINTR(fdatasync(file_.get()));
 #else
   return !HANDLE_EINTR(fsync(file_.get()));