From 78b9cecb525d2e1449d269671b2c584fe904f738 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Wed, 21 Oct 2015 22:40:11 +0800
Subject: [PATCH] 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.
---
 options.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/options.h b/options.h
index c61d4d96..6b877621 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
-- 
GitLab