From ac39ce3eba28eed97942e915f7b4cd77cdfd9e2d Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Mon, 21 Sep 1998 11:34:44 +0000 Subject: replace getpass() with getsmbpass() if getsmbpass.c compiles (This used to be commit 9a5bdf5c1bef689fe0d6879949df869efbc34783) --- source3/include/includes.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'source3/include/includes.h') diff --git a/source3/include/includes.h b/source3/include/includes.h index 3f99574c64..5b47e6fa35 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -21,7 +21,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifndef NO_CONFIG_H /* for some tests */ #include "config.h" +#endif #include "local.h" #ifdef AIX @@ -37,15 +39,10 @@ #endif #ifdef SUNOS4 -#define REPLACE_GETPASS /* on SUNOS4 termios.h conflicts with sys/ioctl.h */ #undef HAVE_TERMIOS_H #endif -#ifdef SUNOS5 -#define REPLACE_GETPASS -#endif - #include @@ -661,4 +658,8 @@ int setresgid(gid_t rgid, gid_t egid, gid_t sgid); #define bzero(a,b) memset((a),'\0',(b)) #endif +#ifdef REPLACE_GETPASS +#define getpass(prompt) getsmbpass((prompt)) +#endif + #endif /* _INCLUDES_H */ -- cgit