changeset 1724:ca75bb513359

_GNU_SOURCE for random
author Matt Johnston <matt@ucc.asn.au>
date Tue, 23 Jun 2020 21:38:46 +0800
parents 5386011b740d
children a139fe25f919 93dcc97c3f3f
files includes.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/includes.h	Thu Jun 18 19:12:07 2020 +0800
+++ b/includes.h	Tue Jun 23 21:38:46 2020 +0800
@@ -125,6 +125,8 @@
 #endif
 
 #ifdef HAVE_SYS_RANDOM_H
+/* uclibc needs _GNU_SOURCE */
+#define _GNU_SOURCE
 #include <sys/random.h>
 #endif