mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
util.crand: Add comments about defines
This commit is contained in:
parent
a29f404ece
commit
b60447fad6
1 changed files with 2 additions and 0 deletions
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue