summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-06-23 22:25:57 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-06-23 22:25:57 +0800
commit05194c7a13139139d672da40df5ccf54c37f50ae (patch)
tree9cf04b90eb984c5d198aaef937388c3a849762e2
parente75297580f969c3ea058d331d20bb9243955fa2d (diff)
parent7dc01d7cd926e45e7787bacf7dbd427349986e97 (diff)
downloaddropbear-05194c7a13139139d672da40df5ccf54c37f50ae.tar.gz
merge
-rw-r--r--configure.ac2
-rw-r--r--includes.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 848c261..473cea5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -549,7 +549,7 @@ AC_ARG_ENABLE(bundled-libtom,
[
BUNDLED_LIBTOM=0
AC_CHECK_LIB(tommath, mp_to_ubin, LIBTOM_LIBS="-ltommath $LIBTOM_LIBS", BUNDLED_LIBTOM=1)
- AC_CHECK_LIB(tomcrypt, register_cipher, LIBTOM_LIBS="-ltomcrypt $LIBTOM_LIBS", BUNDLED_LIBTOM=1)
+ AC_CHECK_LIB(tomcrypt, poly1305_init, LIBTOM_LIBS="-ltomcrypt $LIBTOM_LIBS", BUNDLED_LIBTOM=1)
]
)
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