aboutsummaryrefslogtreecommitdiff
path: root/devel/electron37/files/patch-third__party_crashpad_crashpad_util_posix_close__multiple.cc
blob: fca107bf7098208dd1086a01f08cfc375048ec4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- third_party/crashpad/crashpad/util/posix/close_multiple.cc.orig	2023-11-29 21:40:36 UTC
+++ third_party/crashpad/crashpad/util/posix/close_multiple.cc
@@ -73,7 +73,7 @@ bool CloseMultipleNowOrOnExecUsingFDDir(int min_fd, in
 // This is an advantage over looping over all possible file descriptors, because
 // no attempt needs to be made to close file descriptors that are not open.
 bool CloseMultipleNowOrOnExecUsingFDDir(int min_fd, int preserve_fd) {
-#if BUILDFLAG(IS_APPLE)
+#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD)
   static constexpr char kFDDir[] = "/dev/fd";
 #elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
   static constexpr char kFDDir[] = "/proc/self/fd";