summaryrefslogtreecommitdiff
path: root/threadproc/os2/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'threadproc/os2/thread.c')
-rw-r--r--threadproc/os2/thread.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/threadproc/os2/thread.c b/threadproc/os2/thread.c
index 1ea7954dc..ca3164441 100644
--- a/threadproc/os2/thread.c
+++ b/threadproc/os2/thread.c
@@ -169,6 +169,7 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current,
apr_threadattr_t *attr,
apr_pool_t *pool)
{
+#if APR_HAS_THREAD_LOCAL
apr_status_t stat;
*current = apr_thread_current();
@@ -184,10 +185,11 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current,
(*current)->tid = apr_os_thread_current();
-#if APR_HAS_THREAD_LOCAL
current_thread = *current;
-#endif
return APR_SUCCESS;
+#else
+ return APR_ENOTIMPL;
+#endif
}
APR_DECLARE(void) apr_thread_current_after_fork(void)