summaryrefslogtreecommitdiff
path: root/source3/include/includes.h
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@samba.org>1998-09-21 11:34:44 +0000
committerAlexandre Oliva <oliva@samba.org>1998-09-21 11:34:44 +0000
commitac39ce3eba28eed97942e915f7b4cd77cdfd9e2d (patch)
tree0d1a85c8a7cb40edc812ae51b0fd9dee94bcff00 /source3/include/includes.h
parente649750cb4d2d2577f0577b1d7a87ae4daf8fb6f (diff)
downloadsamba-ac39ce3eba28eed97942e915f7b4cd77cdfd9e2d.tar.gz
samba-ac39ce3eba28eed97942e915f7b4cd77cdfd9e2d.tar.bz2
samba-ac39ce3eba28eed97942e915f7b4cd77cdfd9e2d.zip
replace getpass() with getsmbpass() if getsmbpass.c compiles
(This used to be commit 9a5bdf5c1bef689fe0d6879949df869efbc34783)
Diffstat (limited to 'source3/include/includes.h')
-rw-r--r--source3/include/includes.h11
1 files changed, 6 insertions, 5 deletions
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 <sys/types.h>
@@ -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 */