Software /
code /
prosody
Changeset
8425:91c220f43826
util.crand: Add comments about defines
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 01 Dec 2017 00:56:11 +0100 |
parents | 8424:b0a267f77d9e |
children | 8426:8b612ec00e4a |
files | util-src/crand.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/util-src/crand.c Fri Dec 01 00:29:25 2017 +0100 +++ b/util-src/crand.c Fri Dec 01 00:56:11 2017 +0100 @@ -31,10 +31,12 @@ #if defined(WITH_GETRANDOM) #ifndef __GLIBC_PREREQ +/* Not compiled with glibc at all */ #define __GLIBC_PREREQ(a,b) 0 #endif #if ! __GLIBC_PREREQ(2,25) +/* Not compiled with a glibc that provides getrandom() */ #include <unistd.h> #include <sys/syscall.h>