changeset 1726:57f85129670f

move GNU_SOURCE earlier
author Matt Johnston <matt@ucc.asn.au>
date Tue, 23 Jun 2020 22:24:58 +0800
parents a139fe25f919
children 01fb08c43b85
files includes.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/includes.h	Tue Jun 23 21:47:54 2020 +0800
+++ b/includes.h	Tue Jun 23 22:24:58 2020 +0800
@@ -25,6 +25,8 @@
 #ifndef DROPBEAR_INCLUDES_H_
 #define DROPBEAR_INCLUDES_H_
 
+/* uclibc needs _GNU_SOURCE, maybe other things? */
+#define _GNU_SOURCE
 
 #include "options.h"
 #include "debug.h"
@@ -125,8 +127,6 @@
 #endif
 
 #ifdef HAVE_SYS_RANDOM_H
-/* uclibc needs _GNU_SOURCE */
-#define _GNU_SOURCE
 #include <sys/random.h>
 #endif