$NetBSD: patch-src_3rdparty_chromium_third__party_crashpad_crashpad_util_posix_close__multiple.cc,v 1.2 2022/04/18 11:18:19 adam Exp $ --- src/3rdparty/chromium/third_party/crashpad/crashpad/util/posix/close_multiple.cc.orig 2021-02-19 16:41:59.000000000 +0000 +++ src/3rdparty/chromium/third_party/crashpad/crashpad/util/posix/close_multiple.cc @@ -31,7 +31,7 @@ #include "util/file/directory_reader.h" #include "util/misc/implicit_cast.h" -#if defined(OS_APPLE) +#if defined(OS_APPLE) || defined(OS_BSD) #include #endif @@ -72,7 +72,7 @@ void CloseNowOrOnExec(int fd, bool ebadf // 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_APPLE) +#if defined(OS_APPLE) || defined(OS_BSD) static constexpr char kFDDir[] = "/dev/fd"; #elif defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) static constexpr char kFDDir[] = "/proc/self/fd";