1 --- src/3rdparty/chromium/base/files/file_util.h.orig 2021-12-15 16:12:54 UTC 2 +++ src/3rdparty/chromium/base/files/file_util.h 3 @@ -278,14 +278,14 @@ BASE_EXPORT bool ExecutableExistsInPath(Environment* e 4 BASE_EXPORT bool ExecutableExistsInPath(Environment* env, 5 const FilePath::StringType& executable); 6 7 -#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_AIX) 8 +#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_AIX) || defined(OS_BSD) 9 // Determine if files under a given |path| can be mapped and then mprotect'd 10 // PROT_EXEC. This depends on the mount options used for |path|, which vary 11 // among different Linux distributions and possibly local configuration. It also 12 // depends on details of kernel--ChromeOS uses the noexec option for /dev/shm 13 // but its kernel allows mprotect with PROT_EXEC anyway. 14 BASE_EXPORT bool IsPathExecutable(const FilePath& path); 15 -#endif // defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_AIX) 16 +#endif // defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_AIX) || defined(OS_BSD) 17 18 #endif // OS_POSIX 19 20 @@ -592,7 +592,7 @@ BASE_EXPORT int GetMaximumPathComponentLength(const ba 21 // the directory |path|, in the number of FilePath::CharType, or -1 on failure. 22 BASE_EXPORT int GetMaximumPathComponentLength(const base::FilePath& path); 23 24 -#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_AIX) 25 +#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_AIX) || defined(OS_BSD) 26 // Broad categories of file systems as returned by statfs() on Linux. 27 enum FileSystemType { 28 FILE_SYSTEM_UNKNOWN, // statfs failed. 29