Add HAVE_GETRANDOM (GH PR #6)

This commit is contained in:
Fred Helmesjö 2022-09-01 08:46:08 +02:00 committed by Boris Kolpackov
parent 53976a10e9
commit 8393bc75ec

View File

@ -0,0 +1,14 @@
// HAVE_GETRANDOM : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_GETRANDOM
/* Since FreeBSD 12.0 and glibc 2.25.
*/
#if BUILD2_AUTOCONF_FREEBSD_PREREQ(12, 0) || \
BUILD2_AUTOCONF_GLIBC_PREREQ(2, 25)
# define HAVE_GETRANDOM 1
#endif