joyent/libuv — pull request #374 by saghul (2012-04-11 07:42:51+00:00)
Title: Update c-ares

This PR updates c-ares to version 1.7.6-dev (current master at 41f8ff5). Diff looks bigger than it really is, quite some cosmetic changes were made upstream. This version also has support for NAPTR queries, which I particularly enjoy, and some other bugfixes.

All the changes that libuv used to apply to c-ares are also there.

When reviewing, please do check the changes on the platform headers, now SIZEOF_SHORT and CARES_SIZEOF_LONG need to be defined, hopefully I got them right.

I did test this code (all ares_gethost*, ares_getaddr* and query functions) on Windows (7, 32bits) and Darwin and I'll check Linux later today, but I don't have access to other BSD flavors nor SunOS, sorry!