diff options
Diffstat (limited to 'lib/portability.h')
-rw-r--r-- | lib/portability.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/portability.h b/lib/portability.h index 50c935b5..39e61810 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -251,3 +251,8 @@ static inline char *get_sched_policy_name(int policy) {return "unknown";} typedef struct {char *c_name; int c_val;} CODE; extern CODE prioritynames[], facilitynames[]; #endif + +#if CFG_TOYBOX_GETRANDOM +#include <sys/random.h> +#endif +void xgetrandom(void *buf, unsigned len, unsigned flags); |