Move getpass() portability tweaks out of system.h
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 23 Dec 2009 10:41:38 +0000 (12:41 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 23 Dec 2009 10:41:38 +0000 (12:41 +0200)
- only signature.c needs, no need to pollute system.h

lib/signature.c
system.h

index 7d50db7..030eb8c 100644 (file)
 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)
 {
index d796fbe..15c7eed 100644 (file)
--- 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