Re: Call for testing: OpenSSH 6.8

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Wed, 25 Feb 2015, Damien Miller wrote:

> I don't think there is any need for "elif defined(HAVE_NETDB_H)" since
> we unconditionally include netdb.h in a few places already.
> 
> diff --git defines.h defines.h
> index d99ef68..b7dd1d9 100644
> --- defines.h
> +++ defines.h
> @@ -106,6 +106,7 @@ enum
>  #endif /* MAXPATHLEN */
>  
>  #ifndef HOST_NAME_MAX
> +# include "netdb.h" /* for MAXHOSTNAMELEN */
>  # if defined(_POSIX_HOST_NAME_MAX)
>  #  define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
>  # elif defined(MAXHOSTNAMELEN)
> diff --git includes.h includes.h
> index c3034e3..2893a54 100644
> --- includes.h
> +++ includes.h
> @@ -27,7 +27,7 @@
>  #include <sys/socket.h> /* For CMSG_* */
>  
>  #ifdef HAVE_LIMITS_H
> -# include <limits.h> /* For PATH_MAX */
> +# include <limits.h> /* For PATH_MAX, _POSIX_HOST_NAME_MAX */
>  #endif
>  #ifdef HAVE_BSTRING_H
>  # include <bstring.h>

ok tim


-- 
Tim Rice				Multitalents
tim@xxxxxxxxxxxxxxxx


_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev




[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux