This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gcj on osx questions
- From: Tom Tromey <tromey at redhat dot com>
- To: gnustuff at thisiscool dot com
- Cc: Bryce McKinlay <mckinlay at redhat dot com>, java at gcc dot gnu dot org, Andi Vajda <andi at osafoundation dot org>, jym at Cs dot Nott dot AC dot UK
- Date: 13 Dec 2005 10:53:35 -0700
- Subject: Re: gcj on osx questions
- References: <FCPM8264MHCC9FAR6ZRL08ZQOTP2Z.439e3f85@d9300>
- Reply-to: tromey at redhat dot com
>>>>> "Mohan" == Mohan Embar <gnustuff@thisiscool.com> writes:
>>> + memset (&u, 0, sizeof (u));
Bryce> This is odd. Off-hand I do not see a reason why clearing the SockAddr
Bryce> should be necessary, because it appears that all fields of u.sin_addr
Bryce> will be initialized properly, at least in the INET4 case. Do you know
Bryce> how/why it fails without this?
Maybe there are Apple-specific fields. Or maybe for some reason the
padding must be cleared.
Mohan> No idea, but these posts clued me off and the fix worked for me:
IMO the patch is fine, but it does need a comment explaining why the
memset is there.
Tom