From 705c749aa1a1d1c14073fba86051ea99fe28387d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 30 Jun 2008 12:48:25 +0000 Subject: - 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. --- nameser.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'nameser.h') diff --git a/nameser.h b/nameser.h index dc8c86e..b5add93 100644 --- a/nameser.h +++ b/nameser.h @@ -13,8 +13,6 @@ #ifndef NETWARE -#define MAXHOSTNAMELEN 256 - /* Structure for scatter/gather I/O. */ struct iovec { -- cgit v1.2.3