util: add support for getrandom()

Add support for the Linux getrandom() system call, which is available
in glibc since 2.25.
This commit is contained in:
Miroslav Lichvar
2017-06-15 17:35:33 +02:00
parent db93180ce1
commit c5735ebfe9
3 changed files with 42 additions and 0 deletions

View File

@@ -76,4 +76,8 @@
#include <arpa/inet.h>
#endif
#ifdef HAVE_GETRANDOM
#include <sys/random.h>
#endif
#endif /* GOT_SYSINCL_H */