mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
Add patch as suggested on upstream bug to fix compilation on non-Linux. Closes: https://bugs.gentoo.org/904083 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
21 lines
566 B
Diff
21 lines
566 B
Diff
https://dev.gnupg.org/T6442
|
|
|
|
Patch as suggested by Werned in https://dev.gnupg.org/T6442#169396
|
|
|
|
--- a/random/rndgetentropy.c
|
|
+++ b/random/rndgetentropy.c
|
|
@@ -94,8 +94,13 @@
|
|
* and might not be applicable on other FIPS modules not running
|
|
* RHEL kernel.
|
|
*/
|
|
+#ifdef GRND_RANDOM
|
|
nbytes = length < 32 ? length : 32;
|
|
ret = getrandom (buffer, nbytes, GRND_RANDOM);
|
|
+#else
|
|
+ ret = -1;
|
|
+ gpg_err_set_errno (ENOSYS);
|
|
+#endif
|
|
}
|
|
else
|
|
{
|