cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [Patch] c-ares on Windows

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 9 Mar 2004 10:48:24 +0100 (CET)

On Mon, 8 Mar 2004, Gisle Vanem wrote:

The code the patch below attempts to fix has changed in CVS since the 1.0.0
release. I take it that the point is that mingw provides a strncasecmp()
function? If so, doesn't it also provide a strcasecmp() one?

The other parts of the patch have been committed. Thanks!

> --- c-ares-1.0.0\windows_port.c Sun Jan 04 13:17:41 2004
> +++ .\windows_port.c Wed Feb 11 11:00:42 2004
> @@ -5,6 +5,7 @@
>
> #include "nameser.h"
>
> +#ifndef __MINGW32__
> int
> strncasecmp(const char *a, const char *b, size_t n)
> {
> @@ -23,6 +24,7 @@
> {
> return strncasecmp(a, b, strlen(a)+1);
> }
> +#endif
>
> int
> ares_gettimeofday(struct timeval *tv, struct timezone *tz)
>
> --------------

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
Received on 2004-03-09