From: Zoran V. <zv...@ar...> - 2005-10-08 21:43:45
|
Am 08.10.2005 um 23:22 schrieb Stephen Deasey: > > This doesn't seem to work on my Linux system (Fedora Core 4): > > dns.c: In function 'GetHost': > dns.c:264: error: 'struct sockaddr_in' has no member named 'sin_len' > Rats! This is absolutely bad. I recon we'D have to make something ugly as: #ifdef __APPLE__ static Ns_Cs cs; Ns_CsEnter(&cs); memset(&sa, 0, sizeof(struct sockaddr_in)); sa.sin_family = AF_INET; sa.sin_len = sizeof(struct sockaddr_in); #else memset(&sa, 0, sizeof(struct sockaddr_in)); sa.sin_family = AF_INET; #endif W/o this explicit sin_len setup, the thing is just not working on Darwin... Should I check this in? BTW: it is the latest 10.4.2 Darwin release. Zoran |