mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 11:25:07 -05:00
util: add support for getrandom()
Add support for the Linux getrandom() system call, which is available in glibc since 2.25.
This commit is contained in:
5
configure
vendored
5
configure
vendored
@@ -633,6 +633,11 @@ if test_code 'arc4random_buf()' 'stdlib.h' '' '' 'arc4random_buf(NULL, 0);'; the
|
||||
add_def HAVE_ARC4RANDOM
|
||||
fi
|
||||
|
||||
if test_code 'getrandom()' 'stdlib.h sys/random.h' '' '' \
|
||||
'getrandom(NULL, 256, 0);'; then
|
||||
add_def HAVE_GETRANDOM
|
||||
fi
|
||||
|
||||
RECVMMSG_CODE='
|
||||
struct mmsghdr hdr;
|
||||
return !recvmmsg(0, &hdr, 1, MSG_DONTWAIT, 0);'
|
||||
|
||||
Reference in New Issue
Block a user