curl-users
Suggested patches for libcurl-6.5.2 with VC6
Date: Tue, 21 Mar 2000 11:41:15 -0800 (PST)
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-21