1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

apr_os_thread_current() call needs #if APR_HAS_THREADS protection

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
This commit is contained in:
Doug MacEachern
2001-08-24 06:34:26 +00:00
parent 7bc5a05907
commit ddd3cb2684

View 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,