Add HAVE_ARC4RANDOM, HAVE_ARC4RANDOM_ADDRANDOM, HAVE_ARC4RANDOM_BUF (GH PR #3)

This commit is contained in:
Fred Helmesjö 2022-08-29 16:27:40 +02:00 committed by Boris Kolpackov
parent 1e723b34c7
commit cae127d2d9
3 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,18 @@
// HAVE_ARC4RANDOM : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_ARC4RANDOM
/* Since OpenBSD 2.1, FreeBSD 2.3, NetBSD 2.0, Mac OS X 10.7
* and glibc 2.36.
*/
#if BUILD2_AUTOCONF_OPENBSD_PREREQ(199706) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 3) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(2, 0) || \
BUILD2_AUTOCONF_MACOS_PREREQ(10, 7) || \
BUILD2_AUTOCONF_GLIBC_PREREQ(2, 36)
# define HAVE_ARC4RANDOM 1
#endif

View File

@ -0,0 +1,18 @@
// HAVE_ARC4RANDOM_ADDRANDOM : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_ARC4RANDOM_ADDRANDOM
/* Since OpenBSD 2.1, FreeBSD 2.3, NetBSD 2.0, Mac OS X 10.7
* and glibc 2.36.
*/
#if BUILD2_AUTOCONF_OPENBSD_PREREQ(199706) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 3) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(2, 0) || \
BUILD2_AUTOCONF_MACOS_PREREQ(10, 7) || \
BUILD2_AUTOCONF_GLIBC_PREREQ(2, 36)
# define HAVE_ARC4RANDOM_ADDRANDOM 1
#endif

View File

@ -0,0 +1,18 @@
// HAVE_ARC4RANDOM_BUF : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_ARC4RANDOM_BUF
/* Since OpenBSD 2.1, FreeBSD 2.3, NetBSD 2.0, Mac OS X 10.7
* and glibc 2.36.
*/
#if BUILD2_AUTOCONF_OPENBSD_PREREQ(199706) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 3) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(2, 0) || \
BUILD2_AUTOCONF_MACOS_PREREQ(10, 7) || \
BUILD2_AUTOCONF_GLIBC_PREREQ(2, 36)
# define HAVE_ARC4RANDOM_BUF 1
#endif