$NetBSD$ * Part of patchset to build chromium on NetBSD * Based on OpenBSD's chromium patches, and pkgsrc's qt5-qtwebengine patches --- third_party/ffmpeg/libavutil/random_seed.c.orig 2025-09-08 23:21:33.000000000 +0000 +++ third_party/ffmpeg/libavutil/random_seed.c @@ -20,6 +20,10 @@ #include "config.h" +#if defined(__NetBSD__) +#define _NETBSD_SOURCE 1 +#endif + #if HAVE_UNISTD_H #include #endif @@ -35,6 +39,11 @@ #elif CONFIG_OPENSSL #include #endif +#if HAVE_ARC4RANDOM_BUF +#undef __BSD_VISIBLE +#define __BSD_VISIBLE 1 +#include +#endif #include #include #include