diff options
Diffstat (limited to 'threadproc/os2/thread.c')
-rw-r--r-- | threadproc/os2/thread.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/threadproc/os2/thread.c b/threadproc/os2/thread.c index 7defce049..99ae1d292 100644 --- a/threadproc/os2/thread.c +++ b/threadproc/os2/thread.c @@ -68,13 +68,13 @@ APR_DECLARE(apr_status_t) apr_threadattr_guardsize_set(apr_threadattr_t *attr, return APR_ENOTIMPL; } -#ifdef APR_HAS_THREAD_LOCAL +#if APR_HAS_THREAD_LOCAL static APR_THREAD_LOCAL apr_thread_t *current_thread = NULL; #endif static void dummy_worker(void *opaque) { -#ifdef APR_HAS_THREAD_LOCAL +#if APR_HAS_THREAD_LOCAL current_thread = thread; #endif @@ -180,7 +180,7 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current, (*current)->tid = apr_os_thread_current(); -#ifdef APR_HAS_THREAD_LOCAL +#if APR_HAS_THREAD_LOCAL current_thread = *current; #endif return APR_SUCCESS; @@ -188,7 +188,7 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current, APR_DECLARE(apr_thread_t *) apr_thread_current(void) { -#ifdef APR_HAS_THREAD_LOCAL +#if APR_HAS_THREAD_LOCAL return current_thread; #else return NULL; |