Skip to content

Commit 7a7a9b1

Browse files
committed
Change HAVE_RUSAGE to HAVE_GETRUSAGE, which is the more appropriate
1 parent 7a2b417 commit 7a7a9b1

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.31 1997/02/14 04:17:21 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.32 1997/04/23 18:02:43 scrappy Exp $
1111
*
1212
* NOTES
1313
* this is the "main" module of the postgres backend and
@@ -1270,7 +1270,7 @@ PostgresMain(int argc, char *argv[])
12701270
*/
12711271
if (IsUnderPostmaster == false) {
12721272
puts("\nPOSTGRES backend interactive interface");
1273-
puts("$Revision: 1.31 $ $Date: 1997/02/14 04:17:21 $");
1273+
puts("$Revision: 1.32 $ $Date: 1997/04/23 18:02:43 $");
12741274
}
12751275

12761276
/* ----------------
@@ -1467,11 +1467,11 @@ PostgresMain(int argc, char *argv[])
14671467
return 1;
14681468
}
14691469

1470-
#ifdef HAVE_RUSAGE
1470+
#ifdef HAVE_GETRUSAGE
14711471
#include "rusagestub.h"
1472-
#else /* HAVE_RUSAGE */
1472+
#else /* HAVE_GETRUSAGE */
14731473
#include <sys/resource.h>
1474-
#endif /* HAVE_RUSAGE */
1474+
#endif /* HAVE_GETRUSAGE */
14751475

14761476
struct rusage Save_r;
14771477
struct timeval Save_t;
@@ -1535,7 +1535,7 @@ ShowUsage(void)
15351535
(long int) user.tv_usec,
15361536
(long int) sys.tv_sec,
15371537
(long int) sys.tv_usec);
1538-
#ifndef HAVE_RUSAGE
1538+
#ifndef HAVE_GETRUSAGE
15391539
fprintf(StatFp,
15401540
"!\t%ld/%ld [%ld/%ld] filesystem blocks in/out\n",
15411541
r.ru_inblock - Save_r.ru_inblock,
@@ -1561,7 +1561,7 @@ ShowUsage(void)
15611561
r.ru_nvcsw - Save_r.ru_nvcsw,
15621562
r.ru_nivcsw - Save_r.ru_nivcsw,
15631563
r.ru_nvcsw, r.ru_nivcsw);
1564-
#endif /* HAVE_RUSAGE */
1564+
#endif /* HAVE_GETRUSAGE */
15651565
fprintf(StatFp, "! postgres usage stats:\n");
15661566
PrintBufferUsage(StatFp);
15671567
/* DisplayTupleCount(StatFp); */

0 commit comments

Comments
 (0)