platform/upstream/c-ares.git
11 years agoconfigure: check if compiler halts on function prototype mismatch
Yang Tse [Sun, 16 Dec 2012 17:50:58 +0000 (18:50 +0100)]
configure: check if compiler halts on function prototype mismatch

11 years agocares-functions.m4: add gethostname arg 2 data type check and definition
Yang Tse [Sat, 15 Dec 2012 16:46:49 +0000 (17:46 +0100)]
cares-functions.m4: add gethostname arg 2 data type check and definition

11 years agocares-functions.m4: update thread-safeness detection of getaddrinfo()
Yang Tse [Sat, 15 Dec 2012 16:36:09 +0000 (17:36 +0100)]
cares-functions.m4: update thread-safeness detection of getaddrinfo()

Take in account that POSIX standard Issue 7 drops h_errno support. Now, we also
consider getaddrinfo() to be thread-safe when (_POSIX_C_SOURCE >= 200809L) or
(_XOPEN_SOURCE >= 700) independently of whether h_errno exists or not.

Take in account that h_errno might be a modifiable lvalue not defined as
a C preprocessor macro.

11 years agosetup_once.h: HP-UX <sys/socket.h> issue workaround
Yang Tse [Fri, 14 Dec 2012 18:39:21 +0000 (19:39 +0100)]
setup_once.h: HP-UX <sys/socket.h> issue workaround

Issue: When building a 32bit target with large file support HP-UX
<sys/socket.h> header file may simultaneously provide two different
sets of declarations for sendfile and sendpath functions, one with
static and another with external linkage. Given that we do not use
mentioned functions we really don't care which linkage is the
appropriate one, but on the other hand, the double declaration emmits
warnings when using the HP-UX compiler and errors when using modern
gcc versions resulting in fatal compilation errors.

Mentioned issue is now fixed as long as we don't use sendfile nor
sendpath functions.

11 years agosetup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>
Yang Tse [Fri, 14 Dec 2012 17:36:59 +0000 (18:36 +0100)]
setup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>

Inclusion of these two header files now done in setup_once.h

11 years agoHeader inclusion clean-up
Yang Tse [Fri, 14 Dec 2012 17:25:56 +0000 (18:25 +0100)]
Header inclusion clean-up

Remove header inclusions already done in setup_once.h

11 years agosetup_once.h: HP-UX specific TRUE and FALSE definitions
Yang Tse [Wed, 12 Dec 2012 15:39:07 +0000 (16:39 +0100)]
setup_once.h: HP-UX specific TRUE and FALSE definitions

Some HP-UX system headers require TRUE defined to 1 and FALSE to 0.

11 years agoares_timeout.c: fix compiler warning
Yang Tse [Mon, 10 Dec 2012 15:12:49 +0000 (16:12 +0100)]
ares_timeout.c: fix compiler warning

11 years agoares_create_query.c: IRIX compilation fix
Yang Tse [Fri, 23 Nov 2012 13:28:37 +0000 (14:28 +0100)]
ares_create_query.c: IRIX compilation fix

11 years agoc-ares/nameser.h: add some T_* defines for ns_t_* values
Yang Tse [Fri, 23 Nov 2012 13:23:34 +0000 (14:23 +0100)]
c-ares/nameser.h: add some T_* defines for ns_t_* values

11 years agoRevert "ares_parse_aaaa_reply: fix memory leak"
Daniel Stenberg [Wed, 7 Nov 2012 21:54:50 +0000 (22:54 +0100)]
Revert "ares_parse_aaaa_reply: fix memory leak"

This reverts commit 50f25d8a4b2d16f4c5e0ef620238688b7a315c7a.

11 years agoares_parse_aaaa_reply: fix memory leak
Daniel Stenberg [Tue, 2 Oct 2012 20:36:05 +0000 (22:36 +0200)]
ares_parse_aaaa_reply: fix memory leak

an allocated buffer was not freed in the successful case.

11 years agoadig: perror() doesn't work for socket errors on windows
Gisle Vanem [Fri, 24 Aug 2012 21:17:26 +0000 (23:17 +0200)]
adig: perror() doesn't work for socket errors on windows

... so print the SOCKERRNO instead

11 years agoget_DNS_AdaptersAddresses: fix IPv6 parsing
Daniel Stenberg [Wed, 22 Aug 2012 22:11:30 +0000 (00:11 +0200)]
get_DNS_AdaptersAddresses: fix IPv6 parsing

Use of the wrong define made the function not parse IPv6 addresses
properly.

Bug: http://c-ares.haxx.se/mail/c-ares-archive-2012-06/0028.shtml
Reported by: Saúl Ibarra Corretgé

11 years agoversion: bumped to 1.10.0
Daniel Stenberg [Tue, 21 Aug 2012 21:00:25 +0000 (23:00 +0200)]
version: bumped to 1.10.0

Due to the newly added function: ares_create_query()

11 years agoAUTHORS: synced with 83093ac450
Daniel Stenberg [Tue, 21 Aug 2012 20:59:05 +0000 (22:59 +0200)]
AUTHORS: synced with 83093ac450

Added 21 authors since this document was last updated

11 years agoares_create_query.3: mention when this is added
Daniel Stenberg [Fri, 17 Aug 2012 21:14:24 +0000 (23:14 +0200)]
ares_create_query.3: mention when this is added

11 years agoAdded new feature (rfc2671)
hpopescu@ixiacom.com [Fri, 10 Aug 2012 09:06:09 +0000 (12:06 +0300)]
Added new feature (rfc2671)

11 years agocode police: fix indents, < 80 columns, reflowed comments
Daniel Stenberg [Thu, 26 Jul 2012 18:02:42 +0000 (20:02 +0200)]
code police: fix indents, < 80 columns, reflowed comments

11 years agoCleaned up version awk script.
Guenter Knauf [Wed, 11 Jul 2012 21:40:20 +0000 (23:40 +0200)]
Cleaned up version awk script.

11 years agoread_udp_packets: bail out loop on bad sockets
Gisle Vanem [Sat, 30 Jun 2012 21:44:00 +0000 (23:44 +0200)]
read_udp_packets: bail out loop on bad sockets

I can see that recvfrom() in ares_process.c many times is called with
'udp_socket' == ARES_SOCKET_BAD. The code takes care not to call
recv/recvfrom with ARES_SOCKET_BAD in the outer-loop. So should the
inner-loop.

11 years agocares-compilers.m4: remove -Wstrict-aliasing=3 from clang
Yang Tse [Fri, 29 Jun 2012 14:40:29 +0000 (16:40 +0200)]
cares-compilers.m4: remove -Wstrict-aliasing=3 from clang

Currently it is unknown if there is any version of clang that
actually supports -Wstrict-aliasing. What is known is that there
are several that don't support it.

11 years agocares-compilers.m4: -Wstrict-aliasing=3 for warning enabled gcc and clang builds
Yang Tse [Tue, 26 Jun 2012 19:22:35 +0000 (21:22 +0200)]
cares-compilers.m4: -Wstrict-aliasing=3 for warning enabled gcc and clang builds

11 years agoversion: work towards 1.9.2 (at least)
Daniel Stenberg [Mon, 18 Jun 2012 21:43:21 +0000 (23:43 +0200)]
version: work towards 1.9.2 (at least)

11 years agoRELEASE-NOTES: 1.9.1 coming up
Daniel Stenberg [Mon, 18 Jun 2012 20:23:58 +0000 (22:23 +0200)]
RELEASE-NOTES: 1.9.1 coming up

11 years agoares_version.h: next version is 1.9.0
Daniel Stenberg [Sat, 16 Jun 2012 21:17:57 +0000 (23:17 +0200)]
ares_version.h: next version is 1.9.0

11 years agoares_data.h: ARES_DATATYPE_SOA_REPLY is added in 1.9.0
Marko Kreen [Sat, 16 Jun 2012 21:12:04 +0000 (23:12 +0200)]
ares_data.h: ARES_DATATYPE_SOA_REPLY is added in 1.9.0

11 years agoRELEASE-NOTES: synced with 979bf951d
Daniel Stenberg [Fri, 15 Jun 2012 11:40:37 +0000 (13:40 +0200)]
RELEASE-NOTES: synced with 979bf951d

Next release deemed to become 1.9.0 due to the new function

11 years agoSOA parser added
Marko Kreen [Fri, 15 Jun 2012 11:29:03 +0000 (13:29 +0200)]
SOA parser added

I need to do SOA queries, so here is a parser for them.

- ares_soa_reply: new struct
- ares_malloc_data/ares_free_soa: ARES_DATATYPE_SOA_REPLY
- ares_parse_soa_reply: actual function

11 years agoKill compiler warning
Yang Tse [Thu, 14 Jun 2012 19:19:48 +0000 (21:19 +0200)]
Kill compiler warning

11 years agoFix libcares.pc generation for static MingW* cross builds
Yang Tse [Fri, 25 May 2012 21:59:28 +0000 (23:59 +0200)]
Fix libcares.pc generation for static MingW* cross builds

11 years agoFix UDP and TCP port byte order in saved options.
Nick Alcock [Mon, 21 May 2012 14:25:07 +0000 (16:25 +0200)]
Fix UDP and TCP port byte order in saved options.

The UDP and TCP port are stored in network byte order in the
ares_channeldata, but are passed in to ares_init_options() in host byte
order.  Thus we must return them from ares_save_options() in host byte
order too, or a duplicated channel will convert them again, leading to a
nonfunctional channel and a mysterious connection refused error from
ares_gethostbyname().  This breaks ares_dup(), thus the curl easy API
when c-ares is used by curl, and thus all the curl easy API's users.

12 years agoversion: start working on 1.8.1-DEV
Yang Tse [Sat, 28 Apr 2012 09:45:01 +0000 (11:45 +0200)]
version: start working on 1.8.1-DEV

12 years agoRELEASE-NOTES: call next 1.8 instead
Daniel Stenberg [Fri, 27 Apr 2012 20:04:41 +0000 (22:04 +0200)]
RELEASE-NOTES: call next 1.8 instead

Since we added a function, let's use a stricter bumping scheme

12 years agoINSTALL: some adjustments
Yang Tse [Wed, 25 Apr 2012 15:55:09 +0000 (17:55 +0200)]
INSTALL: some adjustments

12 years agoGIT-INFO: mention buildconf
Daniel Stenberg [Wed, 25 Apr 2012 15:00:09 +0000 (17:00 +0200)]
GIT-INFO: mention buildconf

12 years agoINSTALL: remove more sections that don't apply to c-ares
Yang Tse [Wed, 25 Apr 2012 14:38:18 +0000 (16:38 +0200)]
INSTALL: remove more sections that don't apply to c-ares

12 years agoares_timeout.c: fix compiler warning
Yang Tse [Wed, 25 Apr 2012 13:49:26 +0000 (15:49 +0200)]
ares_timeout.c: fix compiler warning

12 years agoMakefile.m32: fix mingw32 build
Ben Noordhuis [Wed, 25 Apr 2012 12:07:57 +0000 (05:07 -0700)]
Makefile.m32: fix mingw32 build

* add . to include path so ares_build.h is picked up
* make ar configurable to ease cross-compiling

12 years agoRELEASE-NOTES: added what's happened since 1.7.5
Daniel Stenberg [Sun, 22 Apr 2012 15:29:34 +0000 (17:29 +0200)]
RELEASE-NOTES: added what's happened since 1.7.5

12 years agoUpdated copyright year.
Guenter Knauf [Sun, 22 Apr 2012 11:09:39 +0000 (13:09 +0200)]
Updated copyright year.

12 years agoares_init.c: Further refactoring of Windows system's DNS fetching code
Yang Tse [Sat, 21 Apr 2012 12:12:47 +0000 (14:12 +0200)]
ares_init.c: Further refactoring of Windows system's DNS fetching code

12 years agoAndroid: small changes to dns property part.
Guenter Knauf [Fri, 20 Apr 2012 18:42:41 +0000 (20:42 +0200)]
Android: small changes to dns property part.

Prefix prop vars; kill var; use DNS_PROP_NAME_PREFIX macro.

12 years agoHandle CNAME-only in ares_parse_aaaa_reply().
Guenter Knauf [Thu, 19 Apr 2012 17:27:02 +0000 (19:27 +0200)]
Handle CNAME-only in ares_parse_aaaa_reply().

posted to the c-ares list by Peter Griess <pg@std.in>.

12 years agoAdd support for multiple DNS servers on Android.
Guenter Knauf [Thu, 19 Apr 2012 17:16:27 +0000 (19:16 +0200)]
Add support for multiple DNS servers on Android.

Before, c-ares always used the first DNS server on Android, causing
network problems if this DNS server was not available.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
12 years agoAdded INSTALL so it gets into tarballs.
Guenter Knauf [Thu, 19 Apr 2012 08:05:03 +0000 (10:05 +0200)]
Added INSTALL so it gets into tarballs.

12 years agoAdded some more ifdefs to silent compiler warnings.
Guenter Knauf [Tue, 17 Apr 2012 14:57:40 +0000 (16:57 +0200)]
Added some more ifdefs to silent compiler warnings.

12 years agoINSTALL: remove a non c-ares section
Yang Tse [Tue, 17 Apr 2012 11:53:08 +0000 (13:53 +0200)]
INSTALL: remove a non c-ares section

12 years agocares-compilers.m4: -Wno-pedantic-ms-format for Windows gcc 4.5 builds
Yang Tse [Tue, 17 Apr 2012 11:27:17 +0000 (13:27 +0200)]
cares-compilers.m4: -Wno-pedantic-ms-format for Windows gcc 4.5 builds

When building a Windows target with gcc 4.5 or newer and strict compiler
warnings enabled use -Wno-pedantic-ms-format in addition to other flags.

12 years agosetup_once.h: tighten requirements for stdbool.h header inclusion
Yang Tse [Tue, 17 Apr 2012 11:18:33 +0000 (13:18 +0200)]
setup_once.h: tighten requirements for stdbool.h header inclusion

Include stdbool.h only when it is available and configure is capable of
detecting a proper 'bool' data type when the header is included.

12 years agoconfigure: NATIVE_WINDOWS no longer defined in config file
Yang Tse [Tue, 17 Apr 2012 11:13:28 +0000 (13:13 +0200)]
configure: NATIVE_WINDOWS no longer defined in config file

12 years agocares-compilers.m4: double underscore decoration for visibility attribute
Yang Tse [Tue, 17 Apr 2012 10:57:09 +0000 (12:57 +0200)]
cares-compilers.m4: double underscore decoration for visibility attribute

12 years agobuild adjustments: CARES_SYMBOL_HIDING no longer defined in config files
Yang Tse [Tue, 17 Apr 2012 10:46:22 +0000 (12:46 +0200)]
build adjustments: CARES_SYMBOL_HIDING no longer defined in config files

configure script now provides conditional definitions for Makefile.am
that result in CARES_SYMBOL_HIDING being defined by resulting makefiles
when appropriate.

12 years agoconfigure: Windows cross-compilation fixes
Yang Tse [Tue, 17 Apr 2012 03:46:30 +0000 (05:46 +0200)]
configure: Windows cross-compilation fixes

CARES_BUILDING_LIBRARY and CARES_STATICLIB no longer defined in ares_config.h,
configure will generate appropriate conditionals so that mentioned symbols
get defined and used in Makefile derived from Makefile.am at compilation time.

12 years agoAdded INSTALL file adapted from libcurl.
Guenter Knauf [Tue, 17 Apr 2012 07:35:41 +0000 (09:35 +0200)]
Added INSTALL file adapted from libcurl.

Not yet ready, and needs further edits.

12 years agoares_init.c: get_iphlpapi_dns_info() refactoring
Yang Tse [Mon, 16 Apr 2012 20:10:23 +0000 (22:10 +0200)]
ares_init.c: get_iphlpapi_dns_info() refactoring

12 years agoKill some more compiler warnings.
Guenter Knauf [Mon, 16 Apr 2012 13:33:14 +0000 (15:33 +0200)]
Kill some more compiler warnings.

12 years agoKill compiler warning about unused var.
Guenter Knauf [Mon, 16 Apr 2012 13:24:14 +0000 (15:24 +0200)]
Kill compiler warning about unused var.

12 years agoFixed my last commit: wrong preprocessor directive.
Guenter Knauf [Mon, 16 Apr 2012 09:27:16 +0000 (11:27 +0200)]
Fixed my last commit: wrong preprocessor directive.

12 years agoCheck for __ANDROID__ in addition to ANDROID macro.
Guenter Knauf [Mon, 16 Apr 2012 08:34:05 +0000 (10:34 +0200)]
Check for __ANDROID__ in addition to ANDROID macro.

12 years agoCheck for __ANDROID__ in addition to ANDROID macro.
Guenter Knauf [Mon, 16 Apr 2012 08:19:07 +0000 (10:19 +0200)]
Check for __ANDROID__ in addition to ANDROID macro.

Posted to c-ares list by Wayne.

12 years agoFix for Android to disable useless arpa/nameser.h.
Guenter Knauf [Sat, 14 Apr 2012 11:30:29 +0000 (13:30 +0200)]
Fix for Android to disable useless arpa/nameser.h.

12 years agoFix for Android to include sys/select.h for fd_set.
Guenter Knauf [Sat, 14 Apr 2012 10:27:08 +0000 (12:27 +0200)]
Fix for Android to include sys/select.h for fd_set.

12 years agoares_data.c: some NAPTR related fixes
Yang Tse [Sat, 17 Mar 2012 01:45:03 +0000 (02:45 +0100)]
ares_data.c: some NAPTR related fixes

12 years agoport numbers: convert them to network order!
Daniel Stenberg [Sat, 25 Feb 2012 21:42:39 +0000 (22:42 +0100)]
port numbers: convert them to network order!

When the config options ARES_OPT_UDP_PORT or ARES_OPT_TCP_PORT are used,
make sure to convert them to network byte order!

Bug: http://c-ares.haxx.se/mail/c-ares-archive-2012-02/0004.shtml

12 years agowhite space cleanup
Daniel Stenberg [Sat, 25 Feb 2012 21:36:50 +0000 (22:36 +0100)]
white space cleanup

- Keep code within 80 columns

- Removed funny spaces after open paren and before closing paren

12 years agoget_iphlpapi_dns_info: fix buffer overrun
Poul Thomas Lomholt [Sat, 25 Feb 2012 21:32:24 +0000 (22:32 +0100)]
get_iphlpapi_dns_info: fix buffer overrun

I experienced a buffer overrun exception in c-ares on Windows and
tracked it down to be an error in the calculation of the 'left' variable
in get_iphlpapi_dns_info().

I changed the variable type of 'left' to a _signed_ type because of the
subtraction arithmetic; not sure if a long is the best choice

12 years agoMerge pull request #7 from saghul/naptr
Daniel Stenberg [Fri, 24 Feb 2012 21:18:26 +0000 (13:18 -0800)]
Merge pull request #7 from saghul/naptr

Added support for parsing NAPTR records

12 years agoAdded support for parsing NAPTR records
saghul [Thu, 23 Feb 2012 22:15:07 +0000 (23:15 +0100)]
Added support for parsing NAPTR records

12 years agoares_init.c: fix compiler warning on winsock builds
Yang Tse [Thu, 19 Jan 2012 19:20:56 +0000 (20:20 +0100)]
ares_init.c: fix compiler warning on winsock builds

12 years agoconfigure: libtool 1.5 tweaks
Yang Tse [Tue, 20 Dec 2011 13:02:00 +0000 (14:02 +0100)]
configure: libtool 1.5 tweaks

12 years agoares_timeout.3: fix the NAME section
Daniel Stenberg [Mon, 19 Dec 2011 21:57:46 +0000 (22:57 +0100)]
ares_timeout.3: fix the NAME section

It was clearly a copy n' paste error

12 years agoconfigure - m4: make CURL_CHECK_DEF ignore leading whitespace on symbol def
Albert Chin [Tue, 27 Sep 2011 19:59:27 +0000 (21:59 +0200)]
configure - m4: make CURL_CHECK_DEF ignore leading whitespace on symbol def

When using Sun C compiler the preprocessor somehow inserts an extra space
in front of replaced symbol, breaking CURL_CHECK_DEF macro. To workaround
this, macro CURL_CHECK_DEF now ignores all leading whitespace in front of
symbol substitution result.

12 years agoares_init.c: fix segfault triggered in ares_init_options() upon previous
Yang Tse [Tue, 6 Sep 2011 22:30:53 +0000 (00:30 +0200)]
ares_init.c: fix segfault triggered in ares_init_options() upon previous
             failure of init_by_defaults() and incomplete cleanup there.

12 years agoares_process.c: fix compiler warning
Yang Tse [Tue, 6 Sep 2011 00:20:43 +0000 (02:20 +0200)]
ares_process.c: fix compiler warning

12 years agofix MSVC compiler warning 'conditional expression is constant'
Yang Tse [Sun, 4 Sep 2011 15:23:39 +0000 (17:23 +0200)]
fix MSVC compiler warning 'conditional expression is constant'

12 years agosetup_once.h cleanup and sync
Yang Tse [Sun, 4 Sep 2011 15:09:36 +0000 (17:09 +0200)]
setup_once.h cleanup and sync

12 years agoares_getnameinfo: fix random results with c-ares 1.7.5
Denis Bilenko [Wed, 24 Aug 2011 16:37:11 +0000 (18:37 +0200)]
ares_getnameinfo: fix random results with c-ares 1.7.5

In ares_getnameinfo memcpy did not copy enough bytes, causing
it to return arbitrary memory contents as a result.

12 years agowarnings: fix another 'conversion may lose significant bits' compiler warning
Yang Tse [Sun, 21 Aug 2011 17:56:06 +0000 (19:56 +0200)]
warnings: fix another 'conversion may lose significant bits' compiler warning

12 years agoares_dns.h: adjust DNS__16BIT and DNS__32BIT macro definitions
Yang Tse [Sun, 21 Aug 2011 17:18:53 +0000 (19:18 +0200)]
ares_dns.h: adjust DNS__16BIT and DNS__32BIT macro definitions

Fixing compiler warnings existing definitions triggered on these.

12 years agoares_destroy.c: fix segfault in ares_destroy_options()
Yang Tse [Sun, 21 Aug 2011 14:41:43 +0000 (16:41 +0200)]
ares_destroy.c: fix segfault in ares_destroy_options()

12 years agoares_parse_srv_reply: silence compiler warnings
Daniel Stenberg [Sun, 21 Aug 2011 13:43:36 +0000 (15:43 +0200)]
ares_parse_srv_reply: silence compiler warnings

... by adding ugly typecasts.

12 years agoCHANGES: generate from script
Daniel Stenberg [Sun, 21 Aug 2011 13:36:52 +0000 (15:36 +0200)]
CHANGES: generate from script

The CHANGES file is now generated automatically with 'git2changes.pl',
invoked by the maketgz script which is used to build release archives.

The former human edited CHANGES file was renamed to CHANGES.0 in git.

12 years agoMakefile.netware: SIZEOF_SHORT definition
Yang Tse [Sat, 20 Aug 2011 23:59:14 +0000 (01:59 +0200)]
Makefile.netware: SIZEOF_SHORT definition

12 years agowarnings: fix some 'conversion may lose significant bits' compiler warnings
Yang Tse [Sat, 20 Aug 2011 21:05:14 +0000 (23:05 +0200)]
warnings: fix some 'conversion may lose significant bits' compiler warnings

12 years agoconfigure: fix symbol hiding usability check
Yang Tse [Sat, 20 Aug 2011 18:11:00 +0000 (20:11 +0200)]
configure: fix symbol hiding usability check

A more thorough test is done now in order to determine visibility attribute
usability, given that some compilers don't support visibility attribute on
all configurations.

12 years ago1.7.6: start working...
Daniel Stenberg [Tue, 16 Aug 2011 21:02:39 +0000 (23:02 +0200)]
1.7.6: start working...

12 years agoCHANGES: synced for 1.7.5 release
Daniel Stenberg [Tue, 16 Aug 2011 20:41:44 +0000 (22:41 +0200)]
CHANGES: synced for 1.7.5 release

12 years agoRELEASE-NOTES: synced with bb4096effef7f000
Daniel Stenberg [Tue, 16 Aug 2011 20:32:41 +0000 (22:32 +0200)]
RELEASE-NOTES: synced with bb4096effef7f000

12 years agoOnly fall back to AF_INET searches when looking for AF_UNSPEC addresses
Jakub Hrozek [Mon, 13 Jun 2011 10:53:22 +0000 (12:53 +0200)]
Only fall back to AF_INET searches when looking for AF_UNSPEC addresses

12 years agoares_iphlpapi.h: Watcom C fix
Gisle Vanem [Wed, 10 Aug 2011 01:31:39 +0000 (03:31 +0200)]
ares_iphlpapi.h: Watcom C fix

  Added "!defined(_WS2DEF_)" since Watcom doesn't have
  a per type guard for the typedefs 'CSADDR_INFO' (that MingW has) or
  'SOCKET_ADDRESS' (that MSVC has). But we can use the header-guard for
  <ws2def.h> instead.

12 years agoMakefile.Watcom:
Gisle Vanem [Wed, 10 Aug 2011 01:29:02 +0000 (03:29 +0200)]
Makefile.Watcom:
  * The 'NTDDI_VERSION' needs to be raised to 0x05010000
    in order for SOCKADDR_STORAGE etc. to be typedefed.
  * Replaced '-dUSE_WATT32' with '-dWATT32'.
  * Added $(DEMOS) to the 'all' target and removed the 'demos'
    target to be consistent with e.g. Makefile.msvc etc.
  * 'ENABLE_IPV6' is no longer used. Hence removed the '%use_ipv6' construct.
  * object-file order seems to be important (Watcom v.19). Hence
    'ares_getopt.obj' must be put after the .obj that references getopt().

12 years agocares-compilers.m4: CARES_CONVERT_INCLUDE_TO_ISYSTEM adjustments
Yang Tse [Mon, 8 Aug 2011 16:33:05 +0000 (18:33 +0200)]
cares-compilers.m4: CARES_CONVERT_INCLUDE_TO_ISYSTEM adjustments

Add CARES_CHECK_COMPILER as a requirement.

Ensure macro does nothing unless GNU_C or CLANG compiler is used.

This should allow usage of this macro in unforeseen placements.

12 years agoconfig-win32.h: comments adjustments - followup
Yang Tse [Sat, 6 Aug 2011 17:25:21 +0000 (19:25 +0200)]
config-win32.h: comments adjustments - followup

12 years agoconfig-win32.h: comments adjustments
Yang Tse [Sat, 6 Aug 2011 17:18:16 +0000 (19:18 +0200)]
config-win32.h: comments adjustments

12 years agoares_parse_a_reply: fix memleak
Tom Hughes [Wed, 27 Jul 2011 21:13:55 +0000 (14:13 -0700)]
ares_parse_a_reply: fix memleak

12 years agocares-functions.m4 serial # bump
Yang Tse [Fri, 29 Jul 2011 18:31:56 +0000 (20:31 +0200)]
cares-functions.m4 serial # bump

12 years agoRevert "configure: additional flag checks for fcntl() and socket()"
Yang Tse [Fri, 29 Jul 2011 18:20:44 +0000 (20:20 +0200)]
Revert "configure: additional flag checks for fcntl() and socket()"

This reverts commit 5f2a3b0e48f26d24cb1fefea0dccb92d417dcbf7.

12 years agoconfigure: additional flag checks for fcntl() and socket()
Yang Tse [Fri, 29 Jul 2011 16:25:34 +0000 (18:25 +0200)]
configure: additional flag checks for fcntl() and socket()

12 years agoxc-translit.m4 fix quoting
Yang Tse [Mon, 20 Jun 2011 22:06:00 +0000 (00:06 +0200)]
xc-translit.m4 fix quoting