Mercurial > dropbear
diff options.h @ 1157:14854ea32d2c
fix default build when crypt() is unavailable
if the system doesn't support crypt.h/crypt, then ENABLE_SVR_PASSWORD_AUTH
cannot work. rather than default this to on all the time, do so only when
support for the header is found.
author | Mike Frysinger <vapier@gentoo.org> |
---|---|
date | Wed, 21 Oct 2015 22:40:11 +0800 |
parents | 36557295418e |
children | ef67b57fe438 |
line wrap: on
line diff
--- a/options.h Wed Oct 21 22:39:55 2015 +0800 +++ b/options.h Wed Oct 21 22:40:11 2015 +0800 @@ -206,7 +206,10 @@ * PAM challenge/response. * You can't enable both PASSWORD and PAM. */ +/* This requires crypt.h & crypt. */ +#ifdef HAVE_CRYPT_H #define ENABLE_SVR_PASSWORD_AUTH +#endif /* PAM requires ./configure --enable-pam */ /*#define ENABLE_SVR_PAM_AUTH */ #define ENABLE_SVR_PUBKEY_AUTH