aboutsummaryrefslogtreecommitdiff
path: root/ares/nameser.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-06-30 12:48:25 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-06-30 12:48:25 +0000
commit67f139e0166083c808f2de3a231ba5a9206ea1a5 (patch)
treec137aae9aec34bc7c9759471ece8b7bc8788156c /ares/nameser.h
parent654f0473025afeaaa1cbfe64a13ae0b3ca306361 (diff)
- 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.
Diffstat (limited to 'ares/nameser.h')
-rw-r--r--ares/nameser.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/ares/nameser.h b/ares/nameser.h
index dc8c86e34..b5add9334 100644
--- a/ares/nameser.h
+++ b/ares/nameser.h
@@ -13,8 +13,6 @@
#ifndef NETWARE
-#define MAXHOSTNAMELEN 256
-
/* Structure for scatter/gather I/O. */
struct iovec
{