diff options
author | Yann Ylavic <ylavic@apache.org> | 2022-01-20 12:24:59 +0100 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2022-01-20 12:24:59 +0100 |
commit | d3941e5eb6877d467ec1bfa08026ac92a3135327 (patch) | |
tree | 36e6a9093d90a0377bd31bc4bc18f2027ccaf7a5 /server/main.c | |
parent | ap_regex: Use Thread Local Storage (if efficient) to avoid allocations. (diff) | |
download | apache2-d3941e5eb6877d467ec1bfa08026ac92a3135327.tar.xz apache2-d3941e5eb6877d467ec1bfa08026ac92a3135327.zip |
Follow up to r1897240: APR_HAS_THREAD_LOCAL wants #ifdef instead of #if.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897241 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/main.c')
-rw-r--r-- | server/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/main.c b/server/main.c index 0e010bb2a8..8a1d5273d9 100644 --- a/server/main.c +++ b/server/main.c @@ -338,7 +338,7 @@ static void reset_process_pconf(process_rec *process) apr_pool_pre_cleanup_register(process->pconf, NULL, deregister_all_hooks); } -#if APR_HAS_THREAD_LOCAL +#ifdef APR_HAS_THREAD_LOCAL static apr_status_t main_thread_exit_cleanup(void *arg) { apr_thread_t *thd = arg; @@ -398,7 +398,7 @@ static process_rec *init_process(int *argc, const char * const * *argv) process->argv = *argv; process->short_name = apr_filepath_name_get((*argv)[0]); -#if APR_HAS_THREAD_LOCAL +#ifdef APR_HAS_THREAD_LOCAL /* Create an apr_thread_t for the main thread to set up its * Thread Local Storage. Since it's detached and it won't * apr_thread_exit(), destroy its pool before exiting via |