summaryrefslogtreecommitdiffhomepage
path: root/options.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-10-21 22:40:11 +0800
committerMike Frysinger <vapier@gentoo.org>2015-10-21 22:40:11 +0800
commit78b9cecb525d2e1449d269671b2c584fe904f738 (patch)
treee1c1c684ae41afa70e6cfbb68a6688a7862032b4 /options.h
parent93c54fe6f61fc7f593b0218739851a8f4345bfdf (diff)
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.
Diffstat (limited to 'options.h')
-rw-r--r--options.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/options.h b/options.h
index c61d4d9..6b87762 100644
--- a/options.h
+++ b/options.h
@@ -206,7 +206,10 @@ If you test it please contact the Dropbear author */
* 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