summaryrefslogtreecommitdiff
path: root/system.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-09-07 22:46:19 +0000
committerjbj <devnull@localhost>1999-09-07 22:46:19 +0000
commit002c65379feb473d79a626b8abcf474c5cd72f2b (patch)
tree094abebd3c452565cf50e702ba27872cad404b64 /system.h
parent719984e0960264b3bc821b8aa99afbb8e525a638 (diff)
downloadrpm-002c65379feb473d79a626b8abcf474c5cd72f2b.tar.gz
rpm-002c65379feb473d79a626b8abcf474c5cd72f2b.tar.bz2
rpm-002c65379feb473d79a626b8abcf474c5cd72f2b.zip
Solaris: use getpassphrase rather than getpass if available.
CVS patchset: 3266 CVS date: 1999/09/07 22:46:19
Diffstat (limited to 'system.h')
-rw-r--r--system.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/system.h b/system.h
index f799299da..3d107f899 100644
--- a/system.h
+++ b/system.h
@@ -268,6 +268,11 @@ extern void *myrealloc(void *, size_t);
#include <sys/select.h>
#endif
+/* Solaris <= 2.6 limits getpass return to only 8 chars */
+#if HAVE_GETPASSPHRASE
+#define getpass getpassphrase
+#endif
+
#if ! HAVE_LCHOWN
#define lchown chown
#endif