Fix bug #8729 - getpass regressions on Solaris/Illumos - 3.6 and master.
[ira/wip.git] / lib / replace / system / passwd.h
index f630012f00081d37352ee72deccae18ec52f9617..223324c4b4670cd2b9f2ef85fd9afb8d9b07ec24 100644 (file)
@@ -67,6 +67,7 @@
 #include <compat.h>
 #endif
 
+#if !defined(getpass)
 #ifdef REPLACE_GETPASS
 #if defined(REPLACE_GETPASS_BY_GETPASSPHRASE)
 #define getpass(prompt) getpassphrase(prompt)
@@ -75,6 +76,7 @@
 char *rep_getpass(const char *prompt);
 #endif
 #endif
+#endif 
 
 #ifndef NGROUPS_MAX
 #define NGROUPS_MAX 32 /* Guess... */