mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
Switch over NEED_RUSAGE to HAVE_RUSAGE for configure
This commit is contained in:
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.11 1997/01/08 08:31:07 bryanh Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.12 1997/01/24 23:48:25 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -290,13 +290,13 @@ Async_NotifyAtCommit()
|
|||||||
#ifdef ASYNC_DEBUG
|
#ifdef ASYNC_DEBUG
|
||||||
elog(DEBUG, "Notifying others");
|
elog(DEBUG, "Notifying others");
|
||||||
#endif
|
#endif
|
||||||
#ifndef win32
|
#ifdef HAVE_KILL
|
||||||
if (kill(DatumGetInt32(d), SIGUSR2) < 0) {
|
if (kill(DatumGetInt32(d), SIGUSR2) < 0) {
|
||||||
if (errno == ESRCH) {
|
if (errno == ESRCH) {
|
||||||
heap_delete(lRel, &lTuple->t_ctid);
|
heap_delete(lRel, &lTuple->t_ctid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* win32 */
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ReleaseBuffer(b);
|
ReleaseBuffer(b);
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.15 1997/01/22 01:42:16 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.16 1997/01/24 23:48:27 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -40,12 +40,12 @@
|
|||||||
#include <commands/vacuum.h>
|
#include <commands/vacuum.h>
|
||||||
#include <storage/bufpage.h>
|
#include <storage/bufpage.h>
|
||||||
#include "storage/shmem.h"
|
#include "storage/shmem.h"
|
||||||
#ifdef NEED_RUSAGE
|
#ifndef HAVE_RUSAGE
|
||||||
# include <rusagestub.h>
|
# include <rusagestub.h>
|
||||||
#else /* NEED_RUSAGE */
|
#else
|
||||||
# include <sys/time.h>
|
# include <sys/time.h>
|
||||||
# include <sys/resource.h>
|
# include <sys/resource.h>
|
||||||
#endif /* NEED_RUSAGE */
|
#endif
|
||||||
|
|
||||||
bool VacuumRunning = false;
|
bool VacuumRunning = false;
|
||||||
static int MESSLEV; /* message level */
|
static int MESSLEV; /* message level */
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#define HAVE_ISINF
|
#define HAVE_ISINF
|
||||||
#define HAVE_CBRT
|
#define HAVE_CBRT
|
||||||
#define HAVE_RINT
|
#define HAVE_RINT
|
||||||
|
#define HAVE_RUSAGE
|
||||||
|
|
||||||
#if defined(aix)
|
#if defined(aix)
|
||||||
# undef HAVE_SYS_SELECT_H
|
# undef HAVE_SYS_SELECT_H
|
||||||
@ -95,7 +96,7 @@
|
|||||||
# define USE_POSIX_TIME
|
# define USE_POSIX_TIME
|
||||||
# define USE_POSIX_SIGNALS
|
# define USE_POSIX_SIGNALS
|
||||||
# undef HAVE_ISINF
|
# undef HAVE_ISINF
|
||||||
# define NEED_RUSAGE
|
# undef HAVE_RUSAGE
|
||||||
# define NO_EMPTY_STMTS
|
# define NO_EMPTY_STMTS
|
||||||
# define HAVE_TZSET
|
# define HAVE_TZSET
|
||||||
# define NEED_UNION_SEMUN
|
# define NEED_UNION_SEMUN
|
||||||
@ -167,7 +168,7 @@
|
|||||||
# define USE_POSIX_TIME
|
# define USE_POSIX_TIME
|
||||||
# define USE_POSIX_SIGNALS
|
# define USE_POSIX_SIGNALS
|
||||||
# undef HAVE_ISINF
|
# undef HAVE_ISINF
|
||||||
# define NEED_RUSAGE
|
# undef HAVE_RUSAGE
|
||||||
# define NO_EMPTY_STMTS
|
# define NO_EMPTY_STMTS
|
||||||
# define USE_POSIX_TIME
|
# define USE_POSIX_TIME
|
||||||
# define HAVE_TZSET
|
# define HAVE_TZSET
|
||||||
@ -186,7 +187,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
|
||||||
# define NEED_RUSAGE
|
# undef HAVE_RUSAGE
|
||||||
# define NO_EMPTY_STMTS
|
# define NO_EMPTY_STMTS
|
||||||
# define HAVE_TZSET
|
# define HAVE_TZSET
|
||||||
# define NEED_UNION_SEMUN
|
# define NEED_UNION_SEMUN
|
||||||
|
Reference in New Issue
Block a user