From 9f43fee26bc982945926d74d27844e5dbc829d70 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 23 Dec 2009 12:41:38 +0200 Subject: [PATCH] Move getpass() portability tweaks out of system.h - only signature.c needs, no need to pollute system.h --- lib/signature.c | 5 +++++ system.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/signature.c b/lib/signature.c index 7d50db7..030eb8c 100644 --- a/lib/signature.c +++ b/lib/signature.c @@ -25,6 +25,11 @@ char ** environ = NULL; #endif +/* Solaris <= 2.6 limits getpass return to only 8 chars */ +#if HAVE_GETPASSPHRASE +#define getpass getpassphrase +#endif + static int sighdrPut(Header h, rpmSigTag tag, rpmTagType type, rpm_data_t p, rpm_count_t c) { diff --git a/system.h b/system.h index d796fbe..15c7eed 100644 --- a/system.h +++ b/system.h @@ -343,11 +343,6 @@ extern void unsetenv(const char *name); #endif #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 -- 2.7.4