You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by nl...@apache.org on 2005/09/11 10:24:56 UTC

svn commit: r280095 - /httpd/mod_python/trunk/src/mod_python.c

Author: nlehuen
Date: Sun Sep 11 01:24:53 2005
New Revision: 280095

URL: http://svn.apache.org/viewcvs?rev=280095&view=rev
Log:
APR_HAS_THREADS must be tested for truth value, not for definition. On minotaur, APR_HAS_THREADS is defined as 0.

Modified:
    httpd/mod_python/trunk/src/mod_python.c

Modified: httpd/mod_python/trunk/src/mod_python.c
URL: http://svn.apache.org/viewcvs/httpd/mod_python/trunk/src/mod_python.c?rev=280095&r1=280094&r2=280095&view=diff
==============================================================================
--- httpd/mod_python/trunk/src/mod_python.c (original)
+++ httpd/mod_python/trunk/src/mod_python.c Sun Sep 11 01:24:53 2005
@@ -31,7 +31,7 @@
  * (In a Python dictionary) */
 static PyObject * interpreters = NULL;
 
-#if defined(WITH_THREAD) && defined(APR_HAS_THREADS)
+#if defined(WITH_THREAD) && APR_HAS_THREADS
 static apr_thread_mutex_t* interpreters_lock = 0;
 #endif
 
@@ -130,7 +130,7 @@
         name = MAIN_INTERPRETER;
 
 #ifdef WITH_THREAD
-    #ifdef APR_HAS_THREADS
+    #if APR_HAS_THREADS
         apr_thread_mutex_lock(interpreters_lock);
     #endif
     PyEval_AcquireLock();
@@ -162,7 +162,7 @@
 
 #ifdef WITH_THREAD
     PyEval_ReleaseLock();
-    #ifdef APR_HAS_THREADS
+    #if APR_HAS_THREADS
         apr_thread_mutex_unlock(interpreters_lock);
     #endif
 #endif
@@ -520,7 +520,7 @@
         Py_Initialize();
 
 #ifdef WITH_THREAD
-        #ifdef APR_HAS_THREADS
+        #if APR_HAS_THREADS
             apr_thread_mutex_create(&interpreters_lock,APR_THREAD_MUTEX_UNNESTED,p);
         #endif
         /* create and acquire the interpreter lock */