bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] inet_ntop() in mswindows.c


From: Tim Ruehsen
Subject: Re: [Bug-wget] inet_ntop() in mswindows.c
Date: Wed, 08 Mar 2017 13:02:35 +0100
User-agent: KMail/5.2.3 (Linux/4.9.0-2-amd64; KDE/5.28.0; x86_64; ; )

Thanks, Gisle. Pushed now.

Tim

On Wednesday, March 8, 2017 12:50:02 PM CET Gisle Vanem wrote:
> Tim Rühsen wrote:
> > In src/hosts.c put it after
> > #include <string.h>
> > 
> > And also remove the
> > # ifndef __BEOS__
> > ...
> > part.
> > 
> > I guess we should do some more cleanups there.
> 
> For sure. IMHO the best place would be in mswindows.h.
> (thus only 1 place). But I've so many private changes to mswindows.*
> that it's hard for me to create a patch. But something like:
> 
> --- a/src/mswindows.h 2016-05-14 17:43:51
> +++ b/src/mswindows.h 2017-03-08 10:43:33
> @@ -57,6 +57,9 @@
>  /* Declares getpid(). */
>  #include <process.h>
> 
> +/* Declares inet_ntop() and inet_pton(). */
> +#include <arpa/inet.h>
> +
>  /* We have strcasecmp and strncasecmp, just under different names.  */
>  #ifndef HAVE_STRCASECMP
>  # define strcasecmp stricmp
> @@ -85,12 +88,8 @@
> 
>  #define PATH_SEPARATOR '\\'
> 
> -/* Additional declarations needed for IPv6: */
> -#ifdef ENABLE_IPV6
> -const char *inet_ntop (int, const void *, char *, socklen_t);
> -#endif
> -
> -/* ioctl needed by set_windows_fd_as_blocking_socket() */
> +/* We need to include this header since Gnulib's unlink() could be defined
> as +   rpl_unlink(). And because 'struct options' has no 'rpl_unlink'
> member. */ #include <sys/ioctl.h>
> 
>  /* Public functions.  */
> 
> ----
> 
> (also explains why <sys/ioctl.h> is needed).

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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