Author: joes
Date: Thu Apr 14 11:39:44 2005
New Revision: 161336

URL: http://svn.apache.org/viewcvs?view=rev&rev=161336
Log:
Wrap ithread-specific code inside #ifdef USE_ITHREADS.
Otherwise non-ithread perls can't compile with -Werror set.

Reported by: Philip Gollucci

Modified:
    
httpd/apreq/branches/multi-env-unstable/glue/perl/xsbuilder/APR/Request/Apache2/APR__Request__Apache2.h
    
httpd/apreq/branches/multi-env-unstable/glue/perl/xsbuilder/APR/Request/CGI/APR__Request__CGI.h

Modified: 
httpd/apreq/branches/multi-env-unstable/glue/perl/xsbuilder/APR/Request/Apache2/APR__Request__Apache2.h
URL: 
http://svn.apache.org/viewcvs/httpd/apreq/branches/multi-env-unstable/glue/perl/xsbuilder/APR/Request/Apache2/APR__Request__Apache2.h?view=diff&r1=161335&r2=161336
==============================================================================
--- 
httpd/apreq/branches/multi-env-unstable/glue/perl/xsbuilder/APR/Request/Apache2/APR__Request__Apache2.h
 (original)
+++ 
httpd/apreq/branches/multi-env-unstable/glue/perl/xsbuilder/APR/Request/Apache2/APR__Request__Apache2.h
 Thu Apr 14 11:39:44 2005
@@ -78,8 +78,10 @@
 
 static int apreq_xs_table_keys(void *data, const char *key, const char *val)
 {
+#ifdef USE_ITHREADS
     struct apreq_xs_do_arg *d = (struct apreq_xs_do_arg *)data;
     dTHXa(d->perl);
+#endif
     dSP;
     apreq_param_t *p = apreq_value_to_param(val);
     SV *sv = newSVpvn(key, p->v.nlen);

Modified: 
httpd/apreq/branches/multi-env-unstable/glue/perl/xsbuilder/APR/Request/CGI/APR__Request__CGI.h
URL: 
http://svn.apache.org/viewcvs/httpd/apreq/branches/multi-env-unstable/glue/perl/xsbuilder/APR/Request/CGI/APR__Request__CGI.h?view=diff&r1=161335&r2=161336
==============================================================================
--- 
httpd/apreq/branches/multi-env-unstable/glue/perl/xsbuilder/APR/Request/CGI/APR__Request__CGI.h
 (original)
+++ 
httpd/apreq/branches/multi-env-unstable/glue/perl/xsbuilder/APR/Request/CGI/APR__Request__CGI.h
 Thu Apr 14 11:39:44 2005
@@ -75,8 +75,10 @@
 
 static int apreq_xs_table_keys(void *data, const char *key, const char *val)
 {
+#ifdef USE_ITHREADS
     struct apreq_xs_do_arg *d = (struct apreq_xs_do_arg *)data;
     dTHXa(d->perl);
+#endif
     dSP;
     apreq_param_t *p = apreq_value_to_param(val);
     SV *sv = newSVpvn(key, p->v.nlen);


Reply via email to