From: Doug MacEachern Date: Fri, 24 Aug 2001 06:34:26 +0000 (+0000) Subject: apr_os_thread_current() call needs #if APR_HAS_THREADS protection X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85e727e89584f602687988c3376cdafc4724cc1a;p=thirdparty%2Fapache%2Fhttpd.git apr_os_thread_current() call needs #if APR_HAS_THREADS protection PR: Obtained from: Submitted by: Justin Erenkrantz Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@90622 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/ssl_util.c b/ssl_util.c index e61ce05fc7f..42271a84bee 100644 --- a/ssl_util.c +++ b/ssl_util.c @@ -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,