diff options.h @ 1158:ef67b57fe438

fix default build when getpass() is unavailable if the system doesn't support getpass, we still default on the options that require it which causes a build failure. instead, only default enable these when getpass is available.
author Mike Frysinger <vapier@gentoo.org>
date Wed, 21 Oct 2015 22:48:15 +0800
parents 14854ea32d2c
children f567a4152c14
line wrap: on
line diff
--- a/options.h	Wed Oct 21 22:40:11 2015 +0800
+++ b/options.h	Wed Oct 21 22:48:15 2015 +0800
@@ -220,9 +220,12 @@
 #define ENABLE_SVR_PUBKEY_OPTIONS
 #endif
 
+/* This requires getpass. */
+#ifdef HAVE_GETPASS
 #define ENABLE_CLI_PASSWORD_AUTH
+#define ENABLE_CLI_INTERACT_AUTH
+#endif
 #define ENABLE_CLI_PUBKEY_AUTH
-#define ENABLE_CLI_INTERACT_AUTH
 
 /* A default argument for dbclient -i <privatekey>. 
 Homedir is prepended unless path begins with / */