Author: stas
Date: Wed Apr 6 08:05:52 2005
New Revision: 160301
URL: http://svn.apache.org/viewcvs?view=rev&rev=160301
Log:
make sure not to use apr_os_thread_current in debug mode when libapr
wasn't built with threads support
Modified:
perl/modperl/trunk/Changes
perl/modperl/trunk/src/modules/perl/modperl_util.h
Modified: perl/modperl/trunk/Changes
URL:
http://svn.apache.org/viewcvs/perl/modperl/trunk/Changes?view=diff&r1=160300&r2=160301
==============================================================================
--- perl/modperl/trunk/Changes (original)
+++ perl/modperl/trunk/Changes Wed Apr 6 08:05:52 2005
@@ -18,6 +18,9 @@
1.99_XX. Please read the below changes carefully.
***************************************************
+make sure not to use apr_os_thread_current in debug mode when libapr
+wasn't built with threads support [Stas]
+
Apache2::RequestRec->new now sets $r->request_time [Stas]
s/Apache::/Apache2::/g and s/mod_perl/mod_perl2/g in all module
Modified: perl/modperl/trunk/src/modules/perl/modperl_util.h
URL:
http://svn.apache.org/viewcvs/perl/modperl/trunk/src/modules/perl/modperl_util.h?view=diff&r1=160300&r2=160301
==============================================================================
--- perl/modperl/trunk/src/modules/perl/modperl_util.h (original)
+++ perl/modperl/trunk/src/modules/perl/modperl_util.h Wed Apr 6 08:05:52 2005
@@ -102,7 +102,11 @@
void modperl_package_unload(pTHX_ const char *package);
#if defined(MP_TRACE) && defined(APR_HAS_THREADS)
#define MP_TRACEf_TID "/tid 0x%lx"
+#if APR_HAS_THREADS
#define MP_TRACEv_TID (unsigned long)apr_os_thread_current()
+#else
+#define MP_TRACEv_TID 0
+#endif
#define MP_TRACEv_TID_ MP_TRACEv_TID,
#define MP_TRACEv__TID ,MP_TRACEv_TID
#else