util.crand: Build with musl/non-glibc (can't have undefined argument-taking macros?)
authorKim Alvefur <zash@zash.se>
Tue, 25 Apr 2017 01:35:13 +0200
changeset 8130 3e443d6791e6
parent 8129 60f6f7ddd2ce
child 8131 c14513401d65
child 8132 69f8b22b0472
util.crand: Build with musl/non-glibc (can't have undefined argument-taking macros?)
util-src/crand.c
--- 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>