summaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-base_files_scoped__file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-base_files_scoped__file.cc')
-rw-r--r--devel/electron13/files/patch-base_files_scoped__file.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-base_files_scoped__file.cc b/devel/electron13/files/patch-base_files_scoped__file.cc
new file mode 100644
index 000000000000..f6fa3d00d2f1
--- /dev/null
+++ b/devel/electron13/files/patch-base_files_scoped__file.cc
@@ -0,0 +1,11 @@
+--- base/files/scoped_file.cc.orig 2021-01-07 00:36:18 UTC
++++ base/files/scoped_file.cc
+@@ -30,7 +30,7 @@ void ScopedFDCloseTraits::Free(int fd) {
+ // a single open directory would bypass the entire security model.
+ int ret = IGNORE_EINTR(close(fd));
+
+-#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_APPLE) || \
++#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) || defined(OS_APPLE) || \
+ defined(OS_FUCHSIA) || defined(OS_ANDROID)
+ // NB: Some file descriptors can return errors from close() e.g. network
+ // filesystems such as NFS and Linux input devices. On Linux, macOS, and