Skip to content

Commit 60265ee

Browse files
committed
Switch over NEED_RUSAGE to HAVE_RUSAGE for configure
1 parent 970e3f6 commit 60265ee

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

src/backend/commands/async.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.11 1997/01/08 08:31:07 bryanh Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.12 1997/01/24 23:48:25 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -290,13 +290,13 @@ Async_NotifyAtCommit()
290290
#ifdef ASYNC_DEBUG
291291
elog(DEBUG, "Notifying others");
292292
#endif
293-
#ifndef win32
293+
#ifdef HAVE_KILL
294294
if (kill(DatumGetInt32(d), SIGUSR2) < 0) {
295295
if (errno == ESRCH) {
296296
heap_delete(lRel, &lTuple->t_ctid);
297297
}
298298
}
299-
#endif /* win32 */
299+
#endif
300300
}
301301
}
302302
ReleaseBuffer(b);

src/backend/commands/vacuum.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.15 1997/01/22 01:42:16 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.16 1997/01/24 23:48:27 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -40,12 +40,12 @@
4040
#include <commands/vacuum.h>
4141
#include <storage/bufpage.h>
4242
#include "storage/shmem.h"
43-
#ifdef NEED_RUSAGE
43+
#ifndef HAVE_RUSAGE
4444
# include <rusagestub.h>
45-
#else /* NEED_RUSAGE */
45+
#else
4646
# include <sys/time.h>
4747
# include <sys/resource.h>
48-
#endif /* NEED_RUSAGE */
48+
#endif
4949

5050
bool VacuumRunning = false;
5151
static int MESSLEV; /* message level */

src/include/config.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#define HAVE_ISINF
1919
#define HAVE_CBRT
2020
#define HAVE_RINT
21+
#define HAVE_RUSAGE
2122

2223
#if defined(aix)
2324
# undef HAVE_SYS_SELECT_H
@@ -95,7 +96,7 @@
9596
# define USE_POSIX_TIME
9697
# define USE_POSIX_SIGNALS
9798
# undef HAVE_ISINF
98-
# define NEED_RUSAGE
99+
# undef HAVE_RUSAGE
99100
# define NO_EMPTY_STMTS
100101
# define HAVE_TZSET
101102
# define NEED_UNION_SEMUN
@@ -167,7 +168,7 @@
167168
# define USE_POSIX_TIME
168169
# define USE_POSIX_SIGNALS
169170
# undef HAVE_ISINF
170-
# define NEED_RUSAGE
171+
# undef HAVE_RUSAGE
171172
# define NO_EMPTY_STMTS
172173
# define USE_POSIX_TIME
173174
# define HAVE_TZSET
@@ -186,7 +187,7 @@ typedef unsigned char slock_t;
186187
# define USE_POSIX_TIME
187188
# define USE_POSIX_SIGNALS
188189
# undef HAVE_ISINF
189-
# define NEED_RUSAGE
190+
# undef HAVE_RUSAGE
190191
# define NO_EMPTY_STMTS
191192
# define HAVE_TZSET
192193
# define NEED_UNION_SEMUN

0 commit comments

Comments
 (0)