From: djm Date: Mon, 24 Jul 2006 03:51:51 +0000 (+0000) Subject: - stevesk@cvs.openbsd.org 2006/07/12 22:28:52 X-Git-Tag: V_4_4_P1~157 X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/commitdiff_plain/c8dfff332831bd68b431027070c66044b990898d - stevesk@cvs.openbsd.org 2006/07/12 22:28:52 [auth-options.c canohost.c channels.c includes.h readconf.c servconf.c ssh-keyscan.c ssh.c sshconnect.c sshd.c] move #include out of includes.h; ok djm@ --- diff --git a/ChangeLog b/ChangeLog index b43e780f..f818b982 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ - new sentence, new line - s/The the/The/ - kill a bad comma + - stevesk@cvs.openbsd.org 2006/07/12 22:28:52 + [auth-options.c canohost.c channels.c includes.h readconf.c servconf.c ssh-keyscan.c ssh.c sshconnect.c sshd.c] + move #include out of includes.h; ok djm@ 20060713 - (dtucker) [auth-krb5.c auth-pam.c] Still more errno.h diff --git a/auth-options.c b/auth-options.c index 473fb8bf..0b11151c 100644 --- a/auth-options.c +++ b/auth-options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth-options.c,v 1.36 2006/07/06 16:03:53 stevesk Exp $ */ +/* $OpenBSD: auth-options.c,v 1.37 2006/07/12 22:28:51 stevesk Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -14,6 +14,9 @@ #include +#if defined(HAVE_NETDB_H) +# include +#endif #include #include "xmalloc.h" diff --git a/canohost.c b/canohost.c index 4566e2ab..da5131de 100644 --- a/canohost.c +++ b/canohost.c @@ -1,4 +1,4 @@ -/* $OpenBSD: canohost.c,v 1.56 2006/07/11 20:07:25 stevesk Exp $ */ +/* $OpenBSD: canohost.c,v 1.57 2006/07/12 22:28:51 stevesk Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -21,6 +21,9 @@ #include #include +#if defined(HAVE_NETDB_H) +# include +#endif #include "packet.h" #include "xmalloc.h" diff --git a/channels.c b/channels.c index 55506725..2021bad5 100644 --- a/channels.c +++ b/channels.c @@ -1,4 +1,4 @@ -/* $OpenBSD: channels.c,v 1.254 2006/07/11 20:07:25 stevesk Exp $ */ +/* $OpenBSD: channels.c,v 1.255 2006/07/12 22:28:51 stevesk Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -50,6 +50,9 @@ #include #include +#if defined(HAVE_NETDB_H) +# include +#endif #include #include "ssh.h" diff --git a/dns.c b/dns.c index 504b5d72..16954a6a 100644 --- a/dns.c +++ b/dns.c @@ -30,7 +30,9 @@ #include #include -#include +#if defined(HAVE_NETDB_H) +# include +#endif #include "xmalloc.h" #include "key.h" diff --git a/includes.h b/includes.h index 08d34486..7a3396c1 100644 --- a/includes.h +++ b/includes.h @@ -1,4 +1,4 @@ -/* $OpenBSD: includes.h,v 1.49 2006/07/11 20:07:25 stevesk Exp $ */ +/* $OpenBSD: includes.h,v 1.50 2006/07/12 22:28:51 stevesk Exp $ */ /* * Author: Tatu Ylonen @@ -123,9 +123,6 @@ #endif #include /* For typedefs */ -#if defined(HAVE_NETDB_H) -# include -#endif #ifdef HAVE_RPC_TYPES_H # include /* For INADDR_LOOPBACK */ #endif diff --git a/logintest.c b/logintest.c index 7e9fbbfb..0de928be 100644 --- a/logintest.c +++ b/logintest.c @@ -40,7 +40,9 @@ #include #include #include -#include +#if defined(HAVE_NETDB_H) +# include +#endif #ifdef HAVE_TIME_H #include #endif diff --git a/openbsd-compat/fake-rfc2553.h b/openbsd-compat/fake-rfc2553.h index 9a9f756a..8431a42f 100644 --- a/openbsd-compat/fake-rfc2553.h +++ b/openbsd-compat/fake-rfc2553.h @@ -41,7 +41,10 @@ #define _FAKE_RFC2553_H #include "includes.h" -#include "sys/types.h" +#include +#if defined(HAVE_NETDB_H) +# include +#endif /* * First, socket and INET6 related definitions diff --git a/openbsd-compat/port-aix.c b/openbsd-compat/port-aix.c index 33be00c2..6fd593aa 100644 --- a/openbsd-compat/port-aix.c +++ b/openbsd-compat/port-aix.c @@ -34,6 +34,9 @@ #ifdef _AIX #include +#if defined(HAVE_NETDB_H) +# include +#endif #include #include #include "port-aix.h" diff --git a/readconf.c b/readconf.c index d2e17230..4f790e24 100644 --- a/readconf.c +++ b/readconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: readconf.c,v 1.154 2006/07/11 20:07:25 stevesk Exp $ */ +/* $OpenBSD: readconf.c,v 1.155 2006/07/12 22:28:52 stevesk Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -22,6 +22,9 @@ #include #include +#if defined(HAVE_NETDB_H) +# include +#endif #include "ssh.h" #include "xmalloc.h" diff --git a/servconf.c b/servconf.c index 42ec340f..20e3f1a8 100644 --- a/servconf.c +++ b/servconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: servconf.c,v 1.153 2006/07/12 11:34:58 dtucker Exp $ */ +/* $OpenBSD: servconf.c,v 1.154 2006/07/12 22:28:52 stevesk Exp $ */ /* * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland * All rights reserved @@ -15,6 +15,10 @@ #include #include +#if defined(HAVE_NETDB_H) +# include +#endif + #include "ssh.h" #include "log.h" #include "servconf.h" diff --git a/ssh-keygen.c b/ssh-keygen.c index 1c506059..b217c55e 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c @@ -23,6 +23,9 @@ #include #include +#if defined(HAVE_NETDB_H) +# include +#endif #ifdef HAVE_PATHS_H # include #endif diff --git a/ssh-keyscan.c b/ssh-keyscan.c index a612dd1b..38c37e57 100644 --- a/ssh-keyscan.c +++ b/ssh-keyscan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keyscan.c,v 1.66 2006/07/10 16:37:36 stevesk Exp $ */ +/* $OpenBSD: ssh-keyscan.c,v 1.67 2006/07/12 22:28:52 stevesk Exp $ */ /* * Copyright 1995, 1996 by David Mazieres . * @@ -11,12 +11,15 @@ #include "openbsd-compat/sys-queue.h" #include +#if defined(HAVE_NETDB_H) +# include +#endif #include #include +#include #include -#include #include "xmalloc.h" #include "ssh.h" #include "ssh1.h" diff --git a/ssh.c b/ssh.c index 9961baf6..701c4054 100644 --- a/ssh.c +++ b/ssh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh.c,v 1.285 2006/07/11 20:27:56 stevesk Exp $ */ +/* $OpenBSD: ssh.c,v 1.286 2006/07/12 22:28:52 stevesk Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -54,6 +54,9 @@ #include #include #include +#if defined(HAVE_NETDB_H) +# include +#endif #ifdef HAVE_PATHS_H #include #endif diff --git a/sshconnect.c b/sshconnect.c index c9d6221d..fe9b4842 100644 --- a/sshconnect.c +++ b/sshconnect.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshconnect.c,v 1.190 2006/07/11 20:07:25 stevesk Exp $ */ +/* $OpenBSD: sshconnect.c,v 1.191 2006/07/12 22:28:52 stevesk Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -24,6 +24,9 @@ #include #include +#if defined(HAVE_NETDB_H) +# include +#endif #ifdef HAVE_PATHS_H #include #endif diff --git a/sshd.c b/sshd.c index 497525df..3da176da 100644 --- a/sshd.c +++ b/sshd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshd.c,v 1.337 2006/07/12 11:34:58 dtucker Exp $ */ +/* $OpenBSD: sshd.c,v 1.338 2006/07/12 22:28:52 stevesk Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -54,6 +54,9 @@ #include #include +#if defined(HAVE_NETDB_H) +# include +#endif #ifdef HAVE_PATHS_H #include #endif