summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-10-26 06:08:45 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-10-26 06:08:45 +0000
commit28bfd386f2e8046c7b1cfb4b796ea1347e6a42b0 (patch)
tree7a972e941187dad868d05a377e23ca7245270da3 /src
parentc9e549afa60dc3c4660e1de42a79f810299c2ade (diff)
downloadskalibs-28bfd386f2e8046c7b1cfb4b796ea1347e6a42b0.tar.xz
Switch getrandom sysdep back to choose cl
Diffstat (limited to 'src')
-rw-r--r--src/sysdeps/trygetrandom.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sysdeps/trygetrandom.c b/src/sysdeps/trygetrandom.c
index cc2426b..a9f03d1 100644
--- a/src/sysdeps/trygetrandom.c
+++ b/src/sysdeps/trygetrandom.c
@@ -1,5 +1,11 @@
/* ISC license. */
+#include <features.h>
+
+#ifdef __stub_getrandom
+#error getrandom() appears to be a stub function, we won't use it.
+#endif
+
#include <sys/random.h>
int main (void)