aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-tools_gn_base_files_file__posix.cc
blob: b96ca30305db41b3cf5b55ffa2c281581a038a5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- tools/gn/base/files/file_posix.cc.orig	2019-03-11 22:12:13 UTC
+++ tools/gn/base/files/file_posix.cc
@@ -414,7 +414,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()));