mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
util.crand: Build with musl/non-glibc (can't have undefined argument-taking macros?)
This commit is contained in:
parent
14df21dc9b
commit
237f991e4f
1 changed files with 4 additions and 0 deletions
|
@ -29,6 +29,10 @@
|
|||
|
||||
#if defined(WITH_GETRANDOM)
|
||||
|
||||
#ifndef __GLIBC_PREREQ
|
||||
#define __GLIBC_PREREQ(a,b) 0
|
||||
#endif
|
||||
|
||||
#if ! __GLIBC_PREREQ(2,25)
|
||||
#include <unistd.h>
|
||||
#include <sys/syscall.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue