diff --git a/gb.crypt/configure.ac b/gb.crypt/configure.ac index 5b6cd3817..7191d00e1 100644 --- a/gb.crypt/configure.ac +++ b/gb.crypt/configure.ac @@ -9,6 +9,7 @@ AC_PROG_LIBTOOL GB_COMPONENT( crypt, CRYPT, gb.crypt, [src], + [], [GB_FIND(libcrypt.$SHLIBEXT, $prefix /usr/local /usr, lib)], [-lcrypt]) diff --git a/gb.crypt/src/c_crypt.c b/gb.crypt/src/c_crypt.c index 9355f835e..a3e8b539a 100644 --- a/gb.crypt/src/c_crypt.c +++ b/gb.crypt/src/c_crypt.c @@ -28,6 +28,10 @@ #include #include +#ifndef OS_BSD +#include +#endif + #include "gb_common.h" #include "c_crypt.h"