_GNU_SOURCE for random

This commit is contained in:
Matt Johnston 2020-06-23 21:38:46 +08:00
parent 10e119f638
commit 3f5c106a88

View File

@ -125,6 +125,8 @@
#endif
#ifdef HAVE_SYS_RANDOM_H
/* uclibc needs _GNU_SOURCE */
#define _GNU_SOURCE
#include <sys/random.h>
#endif