$OpenBSD: patch-third_party_crashpad_crashpad_util_posix_close_multiple_cc,v 1.1 2018/06/02 17:19:23 robert Exp $

Index: third_party/crashpad/crashpad/util/posix/close_multiple.cc
--- third_party/crashpad/crashpad/util/posix/close_multiple.cc.orig
+++ third_party/crashpad/crashpad/util/posix/close_multiple.cc
@@ -71,7 +71,7 @@ void CloseNowOrOnExec(int fd, bool ebadf_ok) {
 // 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 defined(OS_MACOSX)
+#if defined(OS_MACOSX) || defined(OS_BSD)
   static constexpr char kFDDir[] = "/dev/fd";
 #elif defined(OS_LINUX) || defined(OS_ANDROID)
   static constexpr char kFDDir[] = "/proc/self/fd";
