diff includes.h @ 1724:ca75bb513359

_GNU_SOURCE for random
author Matt Johnston <matt@ucc.asn.au>
date Tue, 23 Jun 2020 21:38:46 +0800
parents f966834f0f9c
children 57f85129670f
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