Skip to content

Commit 9cabea2

Browse files
committed
Change references to NEED_RUSAGE to HAVE_RUSAGE
Pointed out by:" Tatsuo Ishii <t-ishii@sra.co.jp>
1 parent a1019b6 commit 9cabea2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/backend/tcop/postgres.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.28 1997/01/27 22:37:52 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.29 1997/02/03 04:43:31 scrappy Exp $
1111
*
1212
* NOTES
1313
* this is the "main" module of the postgres backend and
@@ -1283,7 +1283,7 @@ PostgresMain(int argc, char *argv[])
12831283
*/
12841284
if (IsUnderPostmaster == false) {
12851285
puts("\nPOSTGRES backend interactive interface");
1286-
puts("$Revision: 1.28 $ $Date: 1997/01/27 22:37:52 $");
1286+
puts("$Revision: 1.29 $ $Date: 1997/02/03 04:43:31 $");
12871287
}
12881288

12891289
/* ----------------
@@ -1481,11 +1481,11 @@ PostgresMain(int argc, char *argv[])
14811481
}
14821482

14831483
#ifndef WIN32
1484-
#ifdef NEED_RUSAGE
1484+
#ifdef HAVE_RUSAGE
14851485
#include "rusagestub.h"
1486-
#else /* NEED_RUSAGE */
1486+
#else /* HAVE_RUSAGE */
14871487
#include <sys/resource.h>
1488-
#endif /* NEED_RUSAGE */
1488+
#endif /* HAVE_RUSAGE */
14891489

14901490
struct rusage Save_r;
14911491
struct timeval Save_t;
@@ -1549,7 +1549,7 @@ ShowUsage(void)
15491549
(long int) user.tv_usec,
15501550
(long int) sys.tv_sec,
15511551
(long int) sys.tv_usec);
1552-
#ifndef NEED_RUSAGE
1552+
#ifndef HAVE_RUSAGE
15531553
fprintf(StatFp,
15541554
"!\t%ld/%ld [%ld/%ld] filesystem blocks in/out\n",
15551555
r.ru_inblock - Save_r.ru_inblock,
@@ -1575,7 +1575,7 @@ ShowUsage(void)
15751575
r.ru_nvcsw - Save_r.ru_nvcsw,
15761576
r.ru_nivcsw - Save_r.ru_nivcsw,
15771577
r.ru_nvcsw, r.ru_nivcsw);
1578-
#endif /* NEED_RUSAGE */
1578+
#endif /* HAVE_RUSAGE */
15791579
fprintf(StatFp, "! postgres usage stats:\n");
15801580
PrintBufferUsage(StatFp);
15811581
/* DisplayTupleCount(StatFp); */

0 commit comments

Comments
 (0)