# HG changeset patch # User Mike Frysinger # Date 1445438411 -28800 # Node ID 14854ea32d2c4b9caaff20a96ddd4aa8bad964c6 # Parent a8f4dade70e5dfa455b9bb0e4cbc04c9459ecd5b 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. diff -r a8f4dade70e5 -r 14854ea32d2c options.h --- 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