diff options
Diffstat (limited to 'ctdb/lib/replace/system/passwd.h')
-rw-r--r-- | ctdb/lib/replace/system/passwd.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/ctdb/lib/replace/system/passwd.h b/ctdb/lib/replace/system/passwd.h index 4e858fc89c..36fca7b4f8 100644 --- a/ctdb/lib/replace/system/passwd.h +++ b/ctdb/lib/replace/system/passwd.h @@ -27,6 +27,9 @@ */ +/* this needs to be included before nss_wrapper.h on some systems */ +#include <unistd.h> + #ifdef HAVE_PWD_H #include <pwd.h> #endif @@ -65,7 +68,8 @@ #endif #ifdef REPLACE_GETPASS -#define getpass(prompt) getsmbpass((prompt)) +#define getpass(prompt) rep_getpass(prompt) +char *rep_getpass(const char *prompt); #endif #ifndef NGROUPS_MAX @@ -92,4 +96,11 @@ #define ULTRIX_AUTH 1 #endif +#ifdef NSS_WRAPPER +#ifndef NSS_WRAPPER_NOT_REPLACE +#define NSS_WRAPPER_REPLACE +#endif +#include "lib/nss_wrapper/nss_wrapper.h" +#endif + #endif |