diff options
Diffstat (limited to 'src/sysdeps/trygetrandom.c')
-rw-r--r-- | src/sysdeps/trygetrandom.c | 6 |
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) |