aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-base_test_test__file__util__linux.cc
blob: 137d156cf616da72adbf2dc33b74d87586d76c66 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- base/test/test_file_util_linux.cc.orig	2022-02-07 13:39:41 UTC
+++ base/test/test_file_util_linux.cc
@@ -52,8 +52,10 @@ bool EvictFileFromSystemCache(const FilePath& file) {
     return false;
   if (fdatasync(fd.get()) != 0)
     return false;
+#if !defined(OS_BSD)
   if (posix_fadvise(fd.get(), 0, 0, POSIX_FADV_DONTNEED) != 0)
     return false;
+#endif
   return true;
 }