Changeset 4489
- Timestamp:
- 07/07/06 04:10:28 (2 years ago)
- Files:
-
- 1 modified
-
trunk/licq/src/support.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/licq/src/support.c
r3523 r4489 238 238 struct hostent *h_buf; 239 239 int herror = 0; 240 gethostbyname_r(szHostName, h, buf, buflen, &h_buf, &herror);241 return herror;240 int retval = gethostbyname_r(szHostName, h, buf, buflen, &h_buf, &herror); 241 return ((retval == 0 && h_buf != NULL) ? 0 /* success */ : herror); 242 242 // Solaris, Irix 243 243 #elif defined(sun) || defined(__sgi)
