26454c2829461219671776542bc5df24b8e252b8
[openwrt/openwrt.git] / package / network / services / dropbear / patches / 002-backport-move-GNU_SOURCE-earlier.patch
1 From a7a67585cbc3fe5df85c641618b347a51a943356 Mon Sep 17 00:00:00 2001
2 From: Matt Johnston <matt@ucc.asn.au>
3 Date: Tue, 23 Jun 2020 22:24:58 +0800
4 Subject: [PATCH] move GNU_SOURCE earlier
5
6 ---
7 includes.h | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
9
10 diff --git a/includes.h b/includes.h
11 index 2789f23..884ebf7 100644
12 --- a/includes.h
13 +++ b/includes.h
14 @@ -25,6 +25,8 @@
15 #ifndef DROPBEAR_INCLUDES_H_
16 #define DROPBEAR_INCLUDES_H_
17
18 +/* uclibc needs _GNU_SOURCE, maybe other things? */
19 +#define _GNU_SOURCE
20
21 #include "options.h"
22 #include "debug.h"
23 @@ -125,8 +127,6 @@
24 #endif
25
26 #ifdef HAVE_SYS_RANDOM_H
27 -/* uclibc needs _GNU_SOURCE */
28 -#define _GNU_SOURCE
29 #include <sys/random.h>
30 #endif
31
32 --
33 2.25.1
34