# HG changeset patch # User Matt Johnston # Date 1592922298 -28800 # Node ID 57f85129670f24024928583ced797befcade072f # Parent a139fe25f9196b36a18ac09e51818c56f6b05f7b move GNU_SOURCE earlier diff -r a139fe25f919 -r 57f85129670f includes.h --- 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 #endif