Re: [PATCH 2/2] c++tools: Work around a BSD bug in getaddrinfo().

2022-03-14 Thread Richard Biener via Gcc-patches
On Mon, Mar 14, 2022 at 9:03 AM Iain Sandoe wrote: > > > > > On 14 Mar 2022, at 07:45, Richard Biener wrote: > > > > On Mon, Mar 14, 2022 at 12:17 AM Iain Sandoe via Gcc-patches > > wrote: > >> > >> Some versions of the BSD getaddrinfo() call do not work with the specific > >> input of "0" for t

Re: [PATCH 2/2] c++tools: Work around a BSD bug in getaddrinfo().

2022-03-14 Thread Iain Sandoe
> On 14 Mar 2022, at 07:45, Richard Biener wrote: > > On Mon, Mar 14, 2022 at 12:17 AM Iain Sandoe via Gcc-patches > wrote: >> >> Some versions of the BSD getaddrinfo() call do not work with the specific >> input of "0" for the servname entry (a segv results). Since we are making >> the cal

Re: [PATCH 2/2] c++tools: Work around a BSD bug in getaddrinfo().

2022-03-14 Thread Richard Biener via Gcc-patches
On Mon, Mar 14, 2022 at 12:17 AM Iain Sandoe via Gcc-patches wrote: > > Some versions of the BSD getaddrinfo() call do not work with the specific > input of "0" for the servname entry (a segv results). Since we are making > the call with a dummy port number, the value is actually not important, o