- (djm) [auth-pam.c auth-shadow.c auth2-none.c cleanup.c sshd.c]
   [openbsd-compat/port-tun.c openbsd-compat/port-tun.h] Sprinkle more
   includes for Linux in
diff --git a/ChangeLog b/ChangeLog
index 180f440..f1b99d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -93,6 +93,9 @@
  - (djm) [openbsd-compat/regress/snprintftest.c]
    [openbsd-compat/regress/strduptest.c] Add missing includes so they pass
    compilation with "-Wall -Werror"
+ - (djm) [auth-pam.c auth-shadow.c auth2-none.c cleanup.c sshd.c]
+   [openbsd-compat/port-tun.c openbsd-compat/port-tun.h] Sprinkle more
+   includes for Linux in
 
 20060804
  - (dtucker) [configure.ac] The "crippled AES" test does not work on recent
@@ -5163,4 +5166,4 @@
    - (djm) Trim deprecated options from INSTALL. Mention UsePAM
    - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
 
-$Id: ChangeLog,v 1.4457 2006/08/05 03:27:29 djm Exp $
+$Id: ChangeLog,v 1.4458 2006/08/05 04:07:20 djm Exp $
diff --git a/auth-pam.c b/auth-pam.c
index 6951984..8e9361c 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -78,19 +78,24 @@
 # define PAM_MSG_MEMBER(msg, n, member) ((msg)[(n)]->member)
 #endif
 
+#include "xmalloc.h"
+#include "buffer.h"
+#include "key.h"
+#include "hostfile.h"
 #include "auth.h"
 #include "auth-pam.h"
-#include "buffer.h"
 #include "canohost.h"
 #include "log.h"
-#include "monitor_wrap.h"
 #include "msg.h"
 #include "packet.h"
 #include "misc.h"
 #include "servconf.h"
 #include "ssh2.h"
-#include "xmalloc.h"
 #include "auth-options.h"
+#ifdef GSSAPI
+#include "ssh-gss.h"
+#endif
+#include "monitor_wrap.h"
 
 extern ServerOptions options;
 extern Buffer loginmsg;
diff --git a/auth-shadow.c b/auth-shadow.c
index 7cd69c2..52447fe 100644
--- a/auth-shadow.c
+++ b/auth-shadow.c
@@ -28,6 +28,8 @@
 #include <shadow.h>
 #include <string.h>
 
+#include "key.h"
+#include "hostfile.h"
 #include "auth.h"
 #include "buffer.h"
 #include "log.h"
diff --git a/auth2-none.c b/auth2-none.c
index 1e4afa0..8cbef52 100644
--- a/auth2-none.c
+++ b/auth2-none.c
@@ -29,6 +29,7 @@
 #include <sys/stat.h>
 
 #include <fcntl.h>
+#include <unistd.h>
 
 #include "xmalloc.h"
 #include "key.h"
diff --git a/cleanup.c b/cleanup.c
index c41ef1c..238f965 100644
--- a/cleanup.c
+++ b/cleanup.c
@@ -15,7 +15,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#include "config.h"
+#include "includes.h"
 
 #include <sys/types.h>
 
diff --git a/openbsd-compat/port-tun.c b/openbsd-compat/port-tun.c
index d2ea038..3e73d8c 100644
--- a/openbsd-compat/port-tun.c
+++ b/openbsd-compat/port-tun.c
@@ -29,6 +29,7 @@
 #include "log.h"
 #include "misc.h"
 #include "buffer.h"
+#include "channels.h"
 
 /*
  * This is the portable version of the SSH tunnel forwarding, it
diff --git a/openbsd-compat/port-tun.h b/openbsd-compat/port-tun.h
index 9f7a986..c53df01 100644
--- a/openbsd-compat/port-tun.h
+++ b/openbsd-compat/port-tun.h
@@ -17,6 +17,8 @@
 #ifndef _PORT_TUN_H
 #define _PORT_TUN_H
 
+struct Channel;
+
 #if defined(SSH_TUN_LINUX) || defined(SSH_TUN_FREEBSD)
 # define CUSTOM_SYS_TUN_OPEN
 int	  sys_tun_open(int, int);
diff --git a/sshd.c b/sshd.c
index 52c21e5..9f14c33 100644
--- a/sshd.c
+++ b/sshd.c
@@ -68,6 +68,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 
 #include <openssl/dh.h>
 #include <openssl/bn.h>