cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Suggested patches for libcurl-6.5.2 with VC6

From: Daniel Stenberg <Daniel.Stenberg_at_haxx.nu>
Date: Wed, 22 Mar 2000 09:33:03 +0100 (MET)

On Tue, 21 Mar 2000, Wham Bang wrote:

> lib/getdate.c:
> ===================================================================
> RCS file: RCS/getdate.c,v
> retrieving revision 1.1
> diff -u -r1.1 getdate.c
> --- getdate.c 2000/03/21 19:22:56 1.1
> +++ getdate.c 2000/03/22 00:23:41
> @@ -420,7 +420,7 @@
> #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) ||
> defined (__sparc) || defined (__sgi)
> #include <alloca.h>
> #else /* not sparc */
> -#if defined (MSDOS) && !defined (__TURBOC__)
> +#if (defined (MSDOS) || defined(WIN32)) && !defined (__TURBOC__)
> #include <malloc.h>
> #else /* not MSDOS, or __TURBOC__ */
> #if defined(_AIX)

This is not a good patch. getdate.c is generated from getdate.y using yacc or
bison, and the source above is part of what bison outputs that isn't in the
getdate.y source file.

It would probably be a smoother solution if the MSDOS define was set by the
makefile.vc6.

-- 
   Daniel Stenberg - http://www.contactor.se/~dast - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
Received on 2000-03-22