summaryrefslogtreecommitdiff
path: root/lib/replace/replace.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/replace/replace.h')
-rw-r--r--lib/replace/replace.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index c081f23c26..c47cf1c1b1 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -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 */