]> granicus.if.org Git - apache/commitdiff
apr_os_thread_current() call needs #if APR_HAS_THREADS protection
authorDoug MacEachern <dougm@apache.org>
Fri, 24 Aug 2001 06:34:26 +0000 (06:34 +0000)
committerDoug MacEachern <dougm@apache.org>
Fri, 24 Aug 2001 06:34:26 +0000 (06:34 +0000)
PR:
Obtained from:
Submitted by:    Justin Erenkrantz <jerenkrantz@ebuilt.com>
Reviewed by:

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90622 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_util.c

index e61ce05fc7f51aebccc9df3253a0ddaf4b375db7..42271a84bee79d4884e5c93b4b798c3b1b52d102 100644 (file)
@@ -347,10 +347,12 @@ static void ssl_util_thr_lock(int mode, int type, const char *file, int line)
     }
 }
 
+#if APR_HAS_THREADS
 static unsigned long ssl_util_thr_id(void)
 {
     return (unsigned long) apr_os_thread_current();
 }
+#endif
 
 static apr_status_t ssl_util_thread_cleanup(void *data)
 {
@@ -389,7 +391,10 @@ void ssl_util_thread_setup(server_rec *s, apr_pool_t *p)
                         mc->szMutexFile, p);
     }
 
+#if APR_HAS_THREADS
     CRYPTO_set_id_callback(ssl_util_thr_id);
+#endif
+
     CRYPTO_set_locking_callback(ssl_util_thr_lock);
 
     apr_pool_cleanup_register(p, NULL,