From 9cabea224c35e9fa8c16bb3090bfb6f31705c50e Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Mon, 3 Feb 1997 04:43:31 +0000 Subject: [PATCH] Change references to NEED_RUSAGE to HAVE_RUSAGE Pointed out by:" Tatsuo Ishii --- src/backend/tcop/postgres.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 3fdbef11da..9819c6d565 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.28 1997/01/27 22:37:52 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.29 1997/02/03 04:43:31 scrappy Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -1283,7 +1283,7 @@ PostgresMain(int argc, char *argv[]) */ if (IsUnderPostmaster == false) { puts("\nPOSTGRES backend interactive interface"); - puts("$Revision: 1.28 $ $Date: 1997/01/27 22:37:52 $"); + puts("$Revision: 1.29 $ $Date: 1997/02/03 04:43:31 $"); } /* ---------------- @@ -1481,11 +1481,11 @@ PostgresMain(int argc, char *argv[]) } #ifndef WIN32 -#ifdef NEED_RUSAGE +#ifdef HAVE_RUSAGE #include "rusagestub.h" -#else /* NEED_RUSAGE */ +#else /* HAVE_RUSAGE */ #include -#endif /* NEED_RUSAGE */ +#endif /* HAVE_RUSAGE */ struct rusage Save_r; struct timeval Save_t; @@ -1549,7 +1549,7 @@ ShowUsage(void) (long int) user.tv_usec, (long int) sys.tv_sec, (long int) sys.tv_usec); -#ifndef NEED_RUSAGE +#ifndef HAVE_RUSAGE fprintf(StatFp, "!\t%ld/%ld [%ld/%ld] filesystem blocks in/out\n", r.ru_inblock - Save_r.ru_inblock, @@ -1575,7 +1575,7 @@ ShowUsage(void) r.ru_nvcsw - Save_r.ru_nvcsw, r.ru_nivcsw - Save_r.ru_nivcsw, r.ru_nvcsw, r.ru_nivcsw); -#endif /* NEED_RUSAGE */ +#endif /* HAVE_RUSAGE */ fprintf(StatFp, "! postgres usage stats:\n"); PrintBufferUsage(StatFp); /* DisplayTupleCount(StatFp); */ -- 2.40.0