util.crand: Build with musl/non-glibc (can't have undefined argument-taking macros?)

This commit is contained in:
Kim Alvefur 2017-04-25 01:35:13 +02:00
parent 14df21dc9b
commit 237f991e4f

View file

@ -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>