summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-06-23 22:24:58 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-06-23 22:24:58 +0800
commit7dc01d7cd926e45e7787bacf7dbd427349986e97 (patch)
treec79982d3cb0479035c9bdce6241a553fefc8ae7f
parent30eedced1d8da15c95fd7b155ff538d267ccbaed (diff)
downloaddropbear-7dc01d7cd926e45e7787bacf7dbd427349986e97.tar.gz
move GNU_SOURCE earlier
-rw-r--r--includes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes.h b/includes.h
index 2789f23..884ebf7 100644
--- a/includes.h
+++ b/includes.h
@@ -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