]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Follow up to r1897240: APR_HAS_THREAD_LOCAL wants #ifdef instead of #if.
authorYann Ylavic <ylavic@apache.org>
Thu, 20 Jan 2022 11:24:59 +0000 (11:24 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 20 Jan 2022 11:24:59 +0000 (11:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897241 13f79535-47bb-0310-9956-ffa450edef68

server/main.c
server/util_pcre.c

index 0e010bb2a8808129009ded9fcf05007e1b94be00..8a1d5273d928e8f3c27f748a7eac36ed0667f9b5 100644 (file)
@@ -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
index fd987771fcb1435a808683c1a5c26922650e1d6e..1dcd950792938136c05851e39bb9fd6475a73d52 100644 (file)
@@ -282,7 +282,7 @@ typedef int*              match_data_pt;
 typedef int*              match_vector_pt;
 #endif
 
-#if APR_HAS_THREAD_LOCAL
+#ifdef APR_HAS_THREAD_LOCAL
 
 static match_data_pt get_match_data(apr_size_t size,
                                     match_vector_pt *ovector,
@@ -398,7 +398,7 @@ AP_DECLARE(int) ap_regexec_len(const ap_regex_t *preg, const char *buff,
     match_vector_pt ovector = NULL;
     apr_size_t nlim = ((apr_size_t)preg->re_nsub + 1) > nmatch
                     ? ((apr_size_t)preg->re_nsub + 1) : nmatch;
-#if defined(HAVE_PCRE2) || APR_HAS_THREAD_LOCAL
+#if defined(HAVE_PCRE2) || defined(APR_HAS_THREAD_LOCAL)
     match_data_pt data = get_match_data(nlim, &ovector, NULL);
 #else
     int small_vector[POSIX_MALLOC_THRESHOLD * 3];