$NetBSD$ * Part of patchset to build chromium on NetBSD * Based on OpenBSD's chromium patches, and pkgsrc's qt5-qtwebengine patches --- components/named_mojo_ipc_server/connection_info.h.orig 2025-09-08 23:21:33.000000000 +0000 +++ components/named_mojo_ipc_server/connection_info.h @@ -12,8 +12,17 @@ #include "base/win/scoped_handle.h" #elif BUILDFLAG(IS_MAC) #include -#elif BUILDFLAG(IS_LINUX) +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) +#if BUILDFLAG(IS_OPENBSD) +#include +#endif #include +#if defined(__NetBSD__) +#include +#define ucred unpcbid +#define SO_PEERCRED LOCAL_PEEREID +#define pid unp_pid +#endif #endif namespace named_mojo_ipc_server { @@ -29,7 +38,7 @@ struct ConnectionInfo { base::ProcessId pid{}; #if BUILDFLAG(IS_MAC) audit_token_t audit_token{}; -#elif BUILDFLAG(IS_LINUX) +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_OPENBSD) ucred credentials{}; #endif };