This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] supports IPv6 only remote target


> Date: Thu, 11 Feb 2016 03:55:29 +0900
> From: Tsutomu Seki <sekiriki@gmail.com>
> Cc: gdb-patches@sourceware.org
> 
> MSYS ws2tcpip.h says;
> 
> #if (_WIN32_WINNT >= _WIN32_WINNT_WINXP)
> /**
> * For WIN2K the user includes wspiapi.h for these functions.
> */
> void WSAAPI freeaddrinfo (struct addrinfo*);
> int WSAAPI getaddrinfo (const char*,const char*,const struct addrinfo*,
>         struct addrinfo**);
> int WSAAPI getnameinfo(const struct sockaddr*,socklen_t,char*,DWORD,
>        char*,DWORD,int);
> #endif /* (_WIN32_WINNT >= _WIN32_WINNT_WINXP) */

Yes, because AFAIK you can have getaddrinfo on W2K only if you install
an optional upgrade kit.

> Is it better to try to update configure.ac to decide to use IPv6(getaddrinfo)
> or stay on IPv4(gethostbyname)?

No, not on Windows, where a binary compiled on one system can then be
run on another.

Do we care about W2K support at this point?  AFAIK, quite a few
MinGW64 headers require and set _WIN32_WINNT to a value that will
exclude W2K anyway.

I suggest to wait for Pedro or Joel to chime in on this issue.

Thanks.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]