Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
8126:60f6f7ddd2ce | 8127:3e443d6791e6 |
---|---|
26 | 26 |
27 #include <string.h> | 27 #include <string.h> |
28 #include <errno.h> | 28 #include <errno.h> |
29 | 29 |
30 #if defined(WITH_GETRANDOM) | 30 #if defined(WITH_GETRANDOM) |
31 | |
32 #ifndef __GLIBC_PREREQ | |
33 #define __GLIBC_PREREQ(a,b) 0 | |
34 #endif | |
31 | 35 |
32 #if ! __GLIBC_PREREQ(2,25) | 36 #if ! __GLIBC_PREREQ(2,25) |
33 #include <unistd.h> | 37 #include <unistd.h> |
34 #include <sys/syscall.h> | 38 #include <sys/syscall.h> |
35 | 39 |