Fix bug #8729 - getpass regressions on Solaris/Illumos - 3.6 and master.
[ira/wip.git] / lib / replace / replace.h
index c081f23c266ca49e30d92996ae6db594ba7b3d10..c47cf1c1b10a57c06ba6da5fefe30c29b0d57370 100644 (file)
@@ -802,4 +802,15 @@ int fdatasync(int );
 /* prototype is in "system/network.h" */
 #endif
 
+#if !defined(getpass)
+#ifdef REPLACE_GETPASS
+#if defined(REPLACE_GETPASS_BY_GETPASSPHRASE)
+#define getpass(prompt) getpassphrase(prompt)
+#else
+#define getpass(prompt) rep_getpass(prompt)
+char *rep_getpass(const char *prompt);
+#endif
+#endif
+#endif
+
 #endif /* _LIBREPLACE_REPLACE_H */