diff --git a/modules/generators/mod_status.c b/modules/generators/mod_status.c
index a01af0dbcd..64314bd542 100644
--- a/modules/generators/mod_status.c
+++ b/modules/generators/mod_status.c
@@ -237,7 +237,7 @@ static int status_handler(request_rec *r)
unsigned long bcount = 0;
unsigned long kbcount = 0;
long req_time;
-#ifndef NO_TIMES
+#ifdef HAVE_TIMES
#ifdef _SC_CLK_TCK
float tick = sysconf(_SC_CLK_TCK);
#else
@@ -326,12 +326,12 @@ static int status_handler(request_rec *r)
lres = score_record.access_count;
bytes = score_record.bytes_served;
if (lres != 0 || (res != SERVER_READY && res != SERVER_DEAD)) {
-#ifndef NO_TIMES
+#ifdef HAVE_TIMES
tu += score_record.times.tms_utime;
ts += score_record.times.tms_stime;
tcu += score_record.times.tms_cutime;
tcs += score_record.times.tms_cstime;
-#endif /* NO_TIMES */
+#endif /* HAVE_TIMES */
count += lres;
bcount += bytes;
if (bcount >= KBYTE) {
@@ -371,7 +371,7 @@ static int status_handler(request_rec *r)
ap_rprintf(r, "Total Accesses: %lu\nTotal kBytes: %lu\n",
count, kbcount);
-#ifndef NO_TIMES
+#ifdef HAVE_TIMES
/* Allow for OS/2 not having CPU stats */
if (ts || tu || tcu || tcs)
ap_rprintf(r, "CPULoad: %g\n",
@@ -395,7 +395,7 @@ static int status_handler(request_rec *r)
ap_rprintf(r, "Total accesses: %lu - Total Traffic: ", count);
format_kbyte_out(r, kbcount);
-#ifndef NO_TIMES
+#ifdef HAVE_TIMES
/* Allow for OS/2 not having CPU stats */
ap_rputs("
\n", r);
ap_rprintf(r, "CPU Usage: u%g s%g cu%g cs%g",
@@ -493,7 +493,7 @@ static int status_handler(request_rec *r)
if (no_table_report)
ap_rputs("
\n\n
Srv | PID | Acc | M\n | SS | Req | Conn | Child | Slot | Client | VHost | Request | ?", r); break; } -#ifdef NO_TIMES +#ifndef HAVE_TIMES /* Allow for OS/2 not having CPU stats */ ap_rprintf(r, "\n | %.0f | %ld", #else @@ -697,7 +698,7 @@ static int status_handler(request_rec *r) } if (!(short_report || no_table_report)) { -#ifdef NO_TIMES +#ifndef HAVE_TIMES ap_rputs(" |
---|