Move getpass() portability tweaks out of system.h

- only signature.c needs, no need to pollute system.h
This commit is contained in:
Panu Matilainen 2009-12-23 12:41:38 +02:00
parent c47b96630c
commit 9f43fee26b
2 changed files with 5 additions and 5 deletions

View File

@ -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)
{

View File

@ -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