Changeset

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
parents 8126:60f6f7ddd2ce
children 8128:c14513401d65 8129:69f8b22b0472
files util-src/crand.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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>