summaryrefslogtreecommitdiff
path: root/source3/include/includes.h
diff options
context:
space:
mode:
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 */