$NetBSD$ * Part of patchset to build electron on NetBSD * Based on OpenBSD's chromium patches, and FreeBSD's electron patches --- base/process/internal_linux.h.orig 2025-02-24 19:59:26.000000000 +0000 +++ base/process/internal_linux.h @@ -140,6 +140,9 @@ TimeDelta ClockTicksToTimeDelta(int64_t // arguments to the lambda. template void ForEachProcessTask(base::ProcessHandle process, Lambda&& lambda) { +#if BUILDFLAG(IS_BSD) + return; +#else // Iterate through the different threads tracked in /proc//task. FilePath fd_path = GetProcPidDir(process).Append("task"); @@ -159,6 +162,7 @@ void ForEachProcessTask(base::ProcessHan FilePath task_path = fd_path.Append(tid_str); lambda(tid, task_path); } +#endif } } // namespace internal