This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] supports IPv6 only remote target
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Tsutomu Seki <sekiriki at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 10 Feb 2016 21:21:52 +0200
- Subject: Re: [PATCH] supports IPv6 only remote target
- Authentication-results: sourceware.org; auth=none
- References: <CALZjo7uhLO0V9HPhW7wn-N5fs2dgwc4n7Gm2e20dezQL29_kgA at mail dot gmail dot com> <831t8ldc80 dot fsf at gnu dot org> <CALZjo7tGT3QRGVhnO9H8PZmxoew-_k64fc_spiDsdV5orxqEkQ at mail dot gmail dot com> <83oaboa0x5 dot fsf at gnu dot org> <CALZjo7vo2Mxd_pP4u192RgU989jEwn+D5sJVCTFiFRZsxpMp0Q at mail dot gmail dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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.