1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-10-06 04:49:41 +00:00

- As was pointed out to me by Andreas Schuldei, the MAXHOSTNAMELEN define is

not posix or anything and thus c-ares failed to build on hurd (and possibly
  elsewhere). The define was also somewhat artificially used in the windows
  port. Now, I instead rewrote the use of gethostbyname to enlarge the host
  name buffer in case of need and totally avoid the use of the MAXHOSTNAMELEN
  define. I thus also removed the defien from the namser.h file where it was
  once added for the windows build.

  I also fixed init_by_defaults() function to not leak memory in case if
  error.
This commit is contained in:
Daniel Stenberg
2008-06-30 12:48:25 +00:00
parent e4ac0f9347
commit 705c749aa1
3 changed files with 106 additions and 44 deletions

View File

@ -13,8 +13,6 @@
#ifndef NETWARE
#define MAXHOSTNAMELEN 256
/* Structure for scatter/gather I/O. */
struct iovec
{