cURL / Mailing Lists / curl-users / Single Mail

curl-users

Win32 patches for 7.10.4-pre4

From: Gisle Vanem <giva_at_bgnett.no>
Date: Sat, 15 Mar 2003 21:45:28 +0100

The following patch to getdate.y is needed due to a name-clash with
structure '"CONTEXT" in <winnt.h>:

----------------------------------------------
diff -u3 -H -B -r ./lib/orig/getdate.y ./lib/getdate.y
--- ./lib/orig/getdate.y Thu Feb 21 09:02:00 2002
+++ ./lib/getdate.y Sat Mar 15 21:35:12 2003
@@ -171,7 +171,7 @@
 } MERIDIAN;

 /* parse results and input string */
-typedef struct _CONTEXT {
+typedef struct _Y_CONTEXT {
     const char *yyInput;
     int yyDayOrdinal;
     int yyDayNumber;
@@ -194,14 +194,14 @@
     int yyRelMonth;
     int yyRelSeconds;
     int yyRelYear;
-} CONTEXT;
+} Y_CONTEXT;

 /* enable use of extra argument to yyparse and yylex which can be used to pass
-** in a user defined value (CONTEXT struct in our case)
+** in a user defined value (Y_CONTEXT struct in our case)
 */
 #define YYPARSE_PARAM cookie
 #define YYLEX_PARAM cookie
-#define context ((CONTEXT *) cookie)
+#define context ((Y_CONTEXT *) cookie)
 %}

 /* This grammar has 13 shift/reduce conflicts. */
@@ -944,7 +944,7 @@
 {
   struct tm tm, tm0, *tmp;
   time_t Start;
- CONTEXT cookie;
+ Y_CONTEXT cookie;
 #ifdef HAVE_LOCALTIME_R
   struct tm keeptime;
 #endif

----------------------------------------------

Compiling with MALLOCDEBUG needs this patch (missing
definition of 'struct sockaddr').

diff -u3 -H -B -r ./lib/orig/memdebug.h ./lib/memdebug.h
--- ./lib/orig/memdebug.h Thu Jan 16 22:08:14 2003
+++ ./lib/memdebug.h Sat Mar 15 21:18:00 2003
@@ -27,7 +27,9 @@
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif
-
+#ifdef WIN32
+#include <winsock.h>
+#endif
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif

-----------------------------------------

BTW. Does anybody succeeded running the tests under WinXP and
Active Perl? Is it supposed to work? I've did a quick port of sws server
to Win32, but I don't think that's the problem. But rather my cluelessness
of Perl...

Gisle V.

# rm /bin/laden
/bin/laden: Not found

-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
Received on 2003-03-15