cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Suggested patches for libcurl-6.5.2 with VC6

From: Hartroth, Jörn <Joern.Hartroth_at_telekom.de>
Date: Thu, 23 Mar 2000 09:07:50 +0100

Hi there,

just checked curl 6.5.2 on MingW32 with the patches suggested below:
- patch to lib/makefile.vc6 obviously doesn't affect MingW32
- MingW32 also chokes on the undefinde utsname in lib/ftp.c, the patch to config-win32.h given below works
- getdate.c has been discussed before

Expect the compiled binaries for Win32 in the near future at the usual place.

Cheers,
    Joern

> -----Original Message-----
> From: Wham Bang [mailto:wham_bang_at_yahoo.com]
> Sent: Tuesday, March 21, 2000 8:41 PM
> To: curl_at_contactor.se
> Subject: Suggested patches for libcurl-6.5.2 with VC6
>
>
>
> Hi all,
>
> OK, just tried building 6.5.2 on NT with VC6 and wound up with the
> following patches. (Note that I am building without SSL.)
> I was surprised that HAVE_UNAME caused problems this time whereas
> it seemed fine in 6.5... Anyone want to try these with MingW32
> to see if they break anything? Any other thoughts or comments?
>
> lib/makefile.vc6
> ===================================================================
> RCS file: RCS/makefile.vc6,v
> retrieving revision 1.1
> diff -u -r1.1 makefile.vc6
> --- makefile.vc6 2000/03/21 19:19:06 1.1
> +++ makefile.vc6 2000/03/22 00:28:22
> @@ -23,7 +23,7 @@
> CCRS = cl.exe /ML /O2 /D "NDEBUG" /D "USE_SSLEAY" /I
> "$(OPENSSL_PATH)/inc32" /I "$(OPENSSL_PATH)/inc32/openssl"
> LINKRS = link.exe -lib /LIBPATH:$(OPENSSL_PATH)/out32dll
>
> -CFLAGS = /nologo /W3 /GX /D "WIN32" /D "_MBCS" /D "_LIB" /YX /FD /c
> +CFLAGS = /I "../include" /nologo /W3 /GX /D "WIN32" /D "VC6" /D
> "_MBCS" /D "_LIB" /YX /FD /c
> LFLAGS = /nologo /out:$(PROGRAM_NAME)
> LINKLIBS = kernel32.lib wsock32.lib
> LINKSLIBS = libeay32.lib ssleay32.lib RSAglue.lib
>
>
> config-win32.h:
> ===================================================================
> RCS file: ..\RCS/config-win32.h,v
> retrieving revision 1.1
> diff -r1.1 ..\config-win32.h
> 89a90
> > #ifndef VC6
> 90a92
> > #endif
> 149a152
> > #ifndef VC6
> 150a154
> > #endif
>
>
> 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)
>
>
>
>
> =====
> Wham! <wham_bang_at_yahoo.com>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
Received on 2000-03-23