diff options
author | Robert Nagy <robert@openbsd.org> | 2022-10-01 10:52:12 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2022-10-04 21:01:34 +0000 |
commit | bfe7b23f5c54dae039349ef81792b05c7b6495a5 (patch) | |
tree | a726c3663d05d3e0ecba25faec7aafcd3a026daa /www/ungoogled-chromium/files/patch-third__party_ipcz_src_reference__drivers_random.cc | |
parent | f1d8b3346b6ad98a622ec17b6a4cfe32ae3c4936 (diff) | |
download | ports-bfe7b23f5c54dae039349ef81792b05c7b6495a5.tar.gz ports-bfe7b23f5c54dae039349ef81792b05c7b6495a5.zip |
Diffstat (limited to 'www/ungoogled-chromium/files/patch-third__party_ipcz_src_reference__drivers_random.cc')
-rw-r--r-- | www/ungoogled-chromium/files/patch-third__party_ipcz_src_reference__drivers_random.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/www/ungoogled-chromium/files/patch-third__party_ipcz_src_reference__drivers_random.cc b/www/ungoogled-chromium/files/patch-third__party_ipcz_src_reference__drivers_random.cc new file mode 100644 index 000000000000..6fe238d97e35 --- /dev/null +++ b/www/ungoogled-chromium/files/patch-third__party_ipcz_src_reference__drivers_random.cc @@ -0,0 +1,20 @@ +--- third_party/ipcz/src/reference_drivers/random.cc.orig 2022-10-01 07:40:07 UTC ++++ third_party/ipcz/src/reference_drivers/random.cc +@@ -15,7 +15,7 @@ + #include <limits> + #elif BUILDFLAG(IS_FUCHSIA) + #include <zircon/syscalls.h> +-#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) ++#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) + #include <asm/unistd.h> + #include <errno.h> + #include <sys/syscall.h> +@@ -78,7 +78,7 @@ void RandomBytes(absl::Span<uint8_t> destination) { + ABSL_ASSERT(ok); + #elif BUILDFLAG(IS_FUCHSIA) + zx_cprng_draw(destination.data(), destination.size()); +-#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) ++#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) + while (!destination.empty()) { + ssize_t result = + syscall(__NR_getrandom, destination.data(), destination.size(), 0); |