Add an implementation of getpass for systems that lack one.
[rsync.git] / rsync.h
diff --git a/rsync.h b/rsync.h
index 3b6ca037d988a6487571d3359c593d85849ef3a8..714906a6f1a439b2192c5c147ee9021e999219d2 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -1282,6 +1282,10 @@ const char *inet_ntop(int af, const void *src, char *dst, size_t size);
 int inet_pton(int af, const char *src, void *dst);
 #endif
 
+#ifndef HAVE_GETPASS
+char *getpass(const char *prompt);
+#endif
+
 #ifdef MAINTAINER_MODE
 const char *get_panic_action(void);
 #endif