aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-base_test_test__file__util__linux.cc
blob: f064d0c19cae0246809e78221b116e8821ebb20e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- base/test/test_file_util_linux.cc.orig	2023-09-13 12:11:42 UTC
+++ base/test/test_file_util_linux.cc
@@ -54,8 +54,10 @@ bool EvictFileFromSystemCache(const FilePath& file) {
     return false;
   if (fdatasync(fd.get()) != 0)
     return false;
+#if !BUILDFLAG(IS_BSD)
   if (posix_fadvise(fd.get(), 0, 0, POSIX_FADV_DONTNEED) != 0)
     return false;
+#endif
   return true;
 }