]> granicus.if.org Git - postgresql/commitdiff
Change references to NEED_RUSAGE to HAVE_RUSAGE
authorMarc G. Fournier <scrappy@hub.org>
Mon, 3 Feb 1997 04:43:31 +0000 (04:43 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Mon, 3 Feb 1997 04:43:31 +0000 (04:43 +0000)
Pointed out by:" Tatsuo Ishii <t-ishii@sra.co.jp>

src/backend/tcop/postgres.c

index 3fdbef11dab85505b47dcbe3e0e2dc99722b2c1a..9819c6d565cc6b93092cff21bc82e50d2bcb55fa 100644 (file)
@@ -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 <sys/resource.h>
-#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); */