The check should be for getrusage(), not rusage() ... change the defines

to reflect what configure is going to define when the time comes
This commit is contained in:
Marc G. Fournier 1997-01-25 19:29:47 +00:00
parent 378a2c1102
commit 37e8621623
2 changed files with 7 additions and 7 deletions

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.16 1997/01/24 23:48:27 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.17 1997/01/25 19:29:36 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -40,7 +40,7 @@
#include <commands/vacuum.h> #include <commands/vacuum.h>
#include <storage/bufpage.h> #include <storage/bufpage.h>
#include "storage/shmem.h" #include "storage/shmem.h"
#ifndef HAVE_RUSAGE #ifndef HAVE_GETRUSAGE
# include <rusagestub.h> # include <rusagestub.h>
#else #else
# include <sys/time.h> # include <sys/time.h>

View File

@ -9,7 +9,7 @@
#define BLCKSZ 8192 #define BLCKSZ 8192
/* Define to enable readline/history support in psql */ /* Define to enable readline/history support in psql */
/* #undef HAVE_LIBREADLINE */ #define HAVE_LIBREADLINE
/* These two defines are not used until HAVE_LIBREADLINE /* These two defines are not used until HAVE_LIBREADLINE
* are also defined * are also defined
@ -29,7 +29,7 @@
#define HAVE_ISINF #define HAVE_ISINF
#define HAVE_CBRT #define HAVE_CBRT
#define HAVE_RINT #define HAVE_RINT
#define HAVE_RUSAGE #define HAVE_GETRUSAGE
#if defined(aix) #if defined(aix)
# undef HAVE_SYS_SELECT_H # undef HAVE_SYS_SELECT_H
@ -107,7 +107,7 @@
# define USE_POSIX_TIME # define USE_POSIX_TIME
# define USE_POSIX_SIGNALS # define USE_POSIX_SIGNALS
# undef HAVE_ISINF # undef HAVE_ISINF
# undef HAVE_RUSAGE # undef HAVE_GETRUSAGE
# define NO_EMPTY_STMTS # define NO_EMPTY_STMTS
# define HAVE_TZSET # define HAVE_TZSET
# define NEED_UNION_SEMUN # define NEED_UNION_SEMUN
@ -179,7 +179,7 @@
# define USE_POSIX_TIME # define USE_POSIX_TIME
# define USE_POSIX_SIGNALS # define USE_POSIX_SIGNALS
# undef HAVE_ISINF # undef HAVE_ISINF
# undef HAVE_RUSAGE # undef HAVE_GETRUSAGE
# define NO_EMPTY_STMTS # define NO_EMPTY_STMTS
# define USE_POSIX_TIME # define USE_POSIX_TIME
# define HAVE_TZSET # define HAVE_TZSET
@ -198,7 +198,7 @@ typedef unsigned char slock_t;
# define USE_POSIX_TIME # define USE_POSIX_TIME
# define USE_POSIX_SIGNALS # define USE_POSIX_SIGNALS
# undef HAVE_ISINF # undef HAVE_ISINF
# undef HAVE_RUSAGE # undef HAVE_GETRUSAGE
# define NO_EMPTY_STMTS # define NO_EMPTY_STMTS
# define HAVE_TZSET # define HAVE_TZSET
# define NEED_UNION_SEMUN # define NEED_UNION_SEMUN