bug-gnulib
[Top][All Lists]
Advanced

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

Re: gethostname on Windows


From: Bruno Haible
Subject: Re: gethostname on Windows
Date: Sun, 2 Aug 2009 20:58:10 +0200
User-agent: KMail/1.9.9

Martin Lambers wrote:
> This requires to include limits.h in gethostname.c, to get INT_MAX.
> 
> Martin
> 
> 
> diff --git a/lib/gethostname.c b/lib/gethostname.c
> index ef58a40..422184a 100644
> --- a/lib/gethostname.c
> +++ b/lib/gethostname.c
> @@ -76,6 +76,9 @@ gethostname (char *name, size_t len)
>  /* Get winsock2.h. */
>  #include <unistd.h>
>  
> +/* Get INT_MAX. */
> +#include <limits.h>
> +
>  /* Get set_winsock_errno. */
>  #include "w32sock.h"

Oops, you're right. Thanks. Applied.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]