diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | includes.h | 4 |
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) ] ) @@ -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 |