Fix bug #8729 - getpass regressions on Solaris/Illumos - 3.6 and master.
[ddiss/samba.git] / lib / replace / system / passwd.h
index aaea9c8344e75b0dc02c972ffc83dd1ec8273ae6..ee9354bb4c79652f02d1c5f8c98ba0f32e98f377 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... */