apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mladen Turk" <mt...@mappingsoft.com>
Subject APR WCE take 3
Date Sun, 10 Feb 2002 18:30:31 GMT
My last patch to enable WCE builds need to patch the 36 files to get things
work.

I took a slightly different approach.

Instead of applying patches to those files (mostly for the reason of missing
API calls), I've created couple of additional files which purpose is to
either recreate the missing API calls, either by reimplementing them or
returning FALSE/NULL and setting the error message .

There are tree major parts of this patch.
1. The missing CRT calls (time, strftime, errno, assert, ...) and missing
header files( created as dummy)
2. The missing API calls (some wrapped like LoadLibraryA, etc...)
3. Lightweight console GUI (implements gets, puts, getch, printf, ...)

The major advantage of this approach is that you only need to patch the 3
files, and there you go.

The rest (cca 70KB) can be downloaded from:
http://apache.mappingsoft.com/downloads/wce.zip


MT.

Index: apr_private.h
===================================================================
RCS file: /home/cvspublic/apr/include/arch/win32/apr_private.h,v
retrieving revision 1.29
diff -u -r1.29 apr_private.h
--- apr_private.h 29 Jan 2002 07:11:25 -0000 1.29
+++ apr_private.h 10 Feb 2002 18:10:29 -0000
@@ -68,6 +68,12 @@
  */
 #include "apr.h"

+#ifdef _WIN32_WCE
+#include <wincrypt.h>
+#include "wcertime.h"
+#include "wcertapi.h"
+#endif
+
 /*
  * Add a _very_few_ declarations missing from the restricted set of headers
  * (If this list becomes extensive, re-enable the required headers above!)

Index: networkio.h
===================================================================
RCS file: /home/cvspublic/apr/include/arch/win32/networkio.h,v
retrieving revision 1.20
diff -u -r1.20 networkio.h
--- networkio.h 16 Jul 2001 20:37:00 -0000 1.20
+++ networkio.h 10 Feb 2002 18:10:32 -0000
@@ -58,6 +58,13 @@
 #include "apr_network_io.h"
 #include "apr_general.h"

+#ifdef _WIN32_WCE
+#include <wincrypt.h>
+#include "wcertime.h"
+#include "wcertapi.h"
+#undef except
+#endif
+
 struct apr_socket_t {
     apr_pool_t *cntxt;
     SOCKET sock;

Index: getuuid.c
===================================================================
RCS file: /home/cvspublic/apr/misc/win32/getuuid.c,v
retrieving revision 1.6
diff -u -r1.6 getuuid.c
--- getuuid.c 13 Apr 2001 15:31:31 -0000 1.6
+++ getuuid.c 10 Feb 2002 18:11:29 -0000
@@ -62,6 +62,13 @@
 #include "apr.h"
 #include "apr_uuid.h"

+#ifdef _WIN32_WCE
+#include <wincrypt.h>
+#include "wcertime.h"
+#include "wcertapi.h"
+#undef except
+#endif
+
 APR_DECLARE(void) apr_uuid_get(apr_uuid_t *uuid)
 {
     GUID guid;




Mime
View raw message