[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[patch for http-2.0 dav] Getting mod_dav_svn working under Win32

From: Barry Pederson <barryp_at_yahoo.com>
Date: 2002-01-22 18:27:50 CET

I've been working on getting mod_dav_svn working under win32, and have
something that at first glance seems to work (can checkout, commit a
change, browse using webfolders).

While doing so, I ran across one ever-so-minor tweak that needs to be
made to mod_dav for linking: dav_xml_get_cdata() needs to have
DAV_DECLARE added to the prototypes, since mod_dav_svn/deadprops.c and
mod_dav_svn/update.c call it.

I've attached a small patch, perhaps Greg or whoever else deals with DAV
can take a look at it.

        Barry

Index: modules/dav/main/mod_dav.h
===================================================================
RCS file: /home/cvspublic/httpd-2.0/modules/dav/main/mod_dav.h,v
retrieving revision 1.54
diff -u -r1.54 mod_dav.h
--- modules/dav/main/mod_dav.h 14 Jan 2002 13:43:24 -0000 1.54
+++ modules/dav/main/mod_dav.h 22 Jan 2002 17:02:13 -0000
@@ -526,7 +526,7 @@
 ap_xml_elem *dav_find_child(const ap_xml_elem *elem, const char *tagname);
 
 /* gather up all the CDATA into a single string */
-const char *dav_xml_get_cdata(const ap_xml_elem *elem, apr_pool_t *pool,
+DAV_DECLARE(const char *) dav_xml_get_cdata(const ap_xml_elem *elem, apr_pool_t *pool,
                               int strip_white);
 
 /*

Index: modules/dav/main/util.c
===================================================================
RCS file: /home/cvspublic/httpd-2.0/modules/dav/main/util.c,v
retrieving revision 1.35
diff -u -r1.35 util.c
--- modules/dav/main/util.c 18 Sep 2001 03:46:13 -0000 1.35
+++ modules/dav/main/util.c 22 Jan 2002 17:03:06 -0000
@@ -325,7 +325,7 @@
 }
 
 /* gather up all the CDATA into a single string */
-const char *dav_xml_get_cdata(const ap_xml_elem *elem, apr_pool_t *pool,
+DAV_DECLARE(const char *) dav_xml_get_cdata(const ap_xml_elem *elem, apr_pool_t *pool,
                               int strip_white)
 {
     apr_size_t len = 0;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:57 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.