aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/crand.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-25 01:35:13 +0200
committerKim Alvefur <zash@zash.se>2017-04-25 01:35:13 +0200
commit237f991e4f843ea2448fac2563149b6671e5c885 (patch)
treedca21447635040258279d4e48061621023bc392b /util-src/crand.c
parent14df21dc9b9f3dc091d9bff4139c600ae00642b6 (diff)
downloadprosody-237f991e4f843ea2448fac2563149b6671e5c885.tar.gz
prosody-237f991e4f843ea2448fac2563149b6671e5c885.zip
util.crand: Build with musl/non-glibc (can't have undefined argument-taking macros?)
Diffstat (limited to 'util-src/crand.c')
-rw-r--r--util-src/crand.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util-src/crand.c b/util-src/crand.c
index d4b84327..7eea1f2b 100644
--- a/util-src/crand.c
+++ b/util-src/crand.c
@@ -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>