aboutsummaryrefslogtreecommitdiff
path: root/devel/electron7/files/patch-tools_gn_base_files_file__util.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron7/files/patch-tools_gn_base_files_file__util.h')
-rw-r--r--devel/electron7/files/patch-tools_gn_base_files_file__util.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/electron7/files/patch-tools_gn_base_files_file__util.h b/devel/electron7/files/patch-tools_gn_base_files_file__util.h
new file mode 100644
index 000000000000..bab519a2739e
--- /dev/null
+++ b/devel/electron7/files/patch-tools_gn_base_files_file__util.h
@@ -0,0 +1,11 @@
+--- tools/gn/base/files/file_util.h.orig 2019-11-19 01:42:28 UTC
++++ tools/gn/base/files/file_util.h
+@@ -361,7 +361,7 @@ bool VerifyPathControlledByAdmin(const base::FilePath&
+ // the directory |path|, in the number of FilePath::CharType, or -1 on failure.
+ int GetMaximumPathComponentLength(const base::FilePath& path);
+
+-#if defined(OS_LINUX) || defined(OS_AIX)
++#if defined(OS_LINUX) || defined(OS_AIX) || defined(OS_BSD)
+ // Broad categories of file systems as returned by statfs() on Linux.
+ enum FileSystemType {
+ FILE_SYSTEM_UNKNOWN, // statfs failed.