util.crand: Add comments about defines

This commit is contained in:
Kim Alvefur 2017-12-01 00:56:11 +01:00
parent a29f404ece
commit b60447fad6

View file

@ -31,10 +31,12 @@
#if defined(WITH_GETRANDOM) #if defined(WITH_GETRANDOM)
#ifndef __GLIBC_PREREQ #ifndef __GLIBC_PREREQ
/* Not compiled with glibc at all */
#define __GLIBC_PREREQ(a,b) 0 #define __GLIBC_PREREQ(a,b) 0
#endif #endif
#if ! __GLIBC_PREREQ(2,25) #if ! __GLIBC_PREREQ(2,25)
/* Not compiled with a glibc that provides getrandom() */
#include <unistd.h> #include <unistd.h>
#include <sys/syscall.h> #include <sys/syscall.h>