]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
APR 1.3 is a requirement for building httpd 2.4 and above.
authorChristophe Jaillet <jailletc36@apache.org>
Sat, 22 Jan 2022 08:42:53 +0000 (08:42 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sat, 22 Jan 2022 08:42:53 +0000 (08:42 +0000)
So this compatibility test can be removed.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897329 13f79535-47bb-0310-9956-ffa450edef68

modules/loggers/mod_log_config.c

index 828e23f8b35bc37a0d1d59714d26bc27712975d9..e515dec26eff530c7fad94663fed3532f1003652 100644 (file)
@@ -882,14 +882,8 @@ static const char *log_pid_tid(request_rec *r, char *a)
         int tid = 0; /* APR will format "0" anyway but an arg is needed */
 #endif
         return apr_psprintf(r->pool,
-#if APR_MAJOR_VERSION > 1 || (APR_MAJOR_VERSION == 1 && APR_MINOR_VERSION >= 2)
                             /* APR can format a thread id in hex */
-                            *a == 'h' ? "%pt" : "%pT",
-#else
-                            /* APR is missing the feature, so always use decimal */
-                            "%pT",
-#endif
-                            &tid);
+                            *a == 'h' ? "%pt" : "%pT", &tid);
     }
     /* bogus format */
     return a;