Diff

util-src/crand.c @ 8127:3e443d6791e6

util.crand: Build with musl/non-glibc (can't have undefined argument-taking macros?)
author Kim Alvefur <zash@zash.se>
date Tue, 25 Apr 2017 01:35:13 +0200
parent 7969:1c6a07606309
child 8422:6eecf82ccd8e
line wrap: on
line diff
--- a/util-src/crand.c	Tue Apr 25 00:14:19 2017 +0200
+++ b/util-src/crand.c	Tue Apr 25 01:35:13 2017 +0200
@@ -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>