d9b13d77dd96699f8901f20a8aa9e283a69583a9
[openwrt/staging/wigyori.git] / package / network / services / dropbear / patches / 001-backport_GNU_SOURCE-for-random.patch
1 From 3f5c106a880a02b21739f2022746e6aa7672474c Mon Sep 17 00:00:00 2001
2 From: Matt Johnston <matt@ucc.asn.au>
3 Date: Tue, 23 Jun 2020 21:38:46 +0800
4 Subject: [PATCH] _GNU_SOURCE for random
5
6 ---
7 includes.h | 2 ++
8 1 file changed, 2 insertions(+)
9
10 diff --git a/includes.h b/includes.h
11 index e8c3e18..2789f23 100644
12 --- a/includes.h
13 +++ b/includes.h
14 @@ -125,6 +125,8 @@
15 #endif
16
17 #ifdef HAVE_SYS_RANDOM_H
18 +/* uclibc needs _GNU_SOURCE */
19 +#define _GNU_SOURCE
20 #include <sys/random.h>
21 #endif
22
23 --
24 2.25.1
25