- Numerous little Solaris fixes
diff --git a/ChangeLog b/ChangeLog
index 819549b..953072f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,8 @@
 19991123
  - Added SuSE package files from Chris Saia <csaia@wtower.com>
- - Restructured package-related files under packages/
+ - Restructured package-related files under packages/*
  - Added generic PAM config
+ - Numerous little Solaris fixes
 
 19991122
  - Make <enter> close gnome-ssh-askpass (Debian bug #50299)
diff --git a/acconfig.h b/acconfig.h
index 6459c63..86ce003 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -68,17 +68,25 @@
 
 /* ******************* Shouldn't need to edit below this line ************** */
 
-# include <sys/types.h> /* For u_intXX_t */
-# include <sys/socket.h> /* For SHUT_XXXX */
+#include <sys/types.h> /* For u_intXX_t */
+#include <sys/socket.h> /* For SHUT_XXXX */
 
 #ifdef HAVE_PATHS_H
 # include <paths.h> /* For _PATH_XXX */
 #endif 
 
+#ifdef HAVE_UTMP_H
+# include <utmp.h> /* For _PATH_XXX */
+#endif 
+
 #ifdef HAVE_SYS_TIME_H
 # include <sys/time.h> /* For timersub */
 #endif
 
+#ifdef HAVE_MAILLOCK_H
+#include <maillock.h>
+#endif
+
 #ifndef SHUT_RDWR
 enum
 {
@@ -176,6 +184,10 @@
 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin:"
 #endif
 
+#ifndef _PATH_DEVNULL
+# define _PATH_DEVNULL "/dev/null"
+#endif
+
 #ifndef _PATH_MAILDIR
 # ifdef MAILDIR
 #  define _PATH_MAILDIR MAILDIR
diff --git a/configure.in b/configure.in
index 709e289..7363527 100644
--- a/configure.in
+++ b/configure.in
@@ -55,7 +55,7 @@
 AC_CHECK_LIB(pam, pam_authenticate, , )
 
 dnl Checks for header files.
-AC_CHECK_HEADERS(pty.h endian.h paths.h lastlog.h shadow.h netgroup.h maillock.h sys/select.h sys/time.h)
+AC_CHECK_HEADERS(pty.h endian.h paths.h lastlog.h shadow.h netgroup.h maillock.h utmp.h sys/select.h sys/time.h)
 
 dnl Checks for library functions.
 AC_CHECK_FUNCS(openpty strlcpy strlcat mkdtemp arc4random setproctitle setlogin setenv)
diff --git a/ssh-add.c b/ssh-add.c
index ba8a964..a959144 100644
--- a/ssh-add.c
+++ b/ssh-add.c
@@ -14,7 +14,7 @@
 */
 
 #include "includes.h"
-RCSID("$Id: ssh-add.c,v 1.11 1999/11/22 07:11:23 damien Exp $");
+RCSID("$Id: ssh-add.c,v 1.12 1999/11/23 00:24:32 damien Exp $");
 
 #include "rsa.h"
 #include "ssh.h"
@@ -184,8 +184,6 @@
 
   /* check if RSA support exists */
   if (rsa_alive() == 0) {
-    extern char *__progname;
-
     fprintf(stderr,
       "%s: no RSA support in libssl and libcrypto.  See ssl(8).\n",
       __progname);
diff --git a/sshd.c b/sshd.c
index e878107..5718eae 100644
--- a/sshd.c
+++ b/sshd.c
@@ -18,7 +18,7 @@
 */
 
 #include "includes.h"
-RCSID("$Id: sshd.c,v 1.28 1999/11/22 03:27:24 damien Exp $");
+RCSID("$Id: sshd.c,v 1.29 1999/11/23 00:24:32 damien Exp $");
 
 #include "xmalloc.h"
 #include "rsa.h"
@@ -32,10 +32,6 @@
 #include "uidswap.h"
 #include "compat.h"
 
-#ifdef HAVE_MAILLOCK_H
-# include <maillock.h>
-#endif
-
 #ifdef LIBWRAP
 #include <tcpd.h>
 #include <syslog.h>