Skip to content

Commit 2b1d8bd

Browse files
committed
Include postgres.h before checking #ifdef XLOG.
1 parent 9394d39 commit 2b1d8bd

File tree

4 files changed

+11
-16
lines changed

4 files changed

+11
-16
lines changed

src/backend/access/transam/varsup.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,16 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/transam/varsup.c,v 1.32 2000/11/08 22:09:55 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/transam/varsup.c,v 1.33 2000/11/20 16:47:30 petere Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
15-
#ifdef XLOG
15+
#include "postgres.h"
1616

17+
#ifdef XLOG
1718
#include "xlog_varsup.c"
18-
1919
#else
2020

21-
#include "postgres.h"
22-
2321
#include "access/heapam.h"
2422
#include "catalog/catname.h"
2523
#include "storage/proc.h"

src/backend/access/transam/xlogutils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
*-------------------------------------------------------------------------
1010
*/
1111

12-
#ifdef XLOG
13-
1412
#include "postgres.h"
1513

14+
#ifdef XLOG
15+
1616
#include "access/xlog.h"
1717
#include "access/transam.h"
1818
#include "access/xact.h"

src/backend/storage/buffer/bufmgr.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.93 2000/11/08 22:09:59 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.94 2000/11/20 16:47:31 petere Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -43,18 +43,17 @@
4343
* buf_table.c -- manages the buffer lookup table
4444
*/
4545

46-
#ifdef XLOG
46+
#include "postgres.h"
4747

48+
#ifdef XLOG
4849
#include "xlog_bufmgr.c"
49-
5050
#else
5151

5252
#include <sys/types.h>
5353
#include <sys/file.h>
5454
#include <math.h>
5555
#include <signal.h>
5656

57-
#include "postgres.h"
5857
#include "executor/execdebug.h"
5958
#include "miscadmin.h"
6059
#include "storage/s_lock.h"

src/backend/storage/buffer/localbuf.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,22 @@
1616
*
1717
*
1818
* IDENTIFICATION
19-
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/localbuf.c,v 1.34 2000/11/08 22:09:59 tgl Exp $
19+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/localbuf.c,v 1.35 2000/11/20 16:47:32 petere Exp $
2020
*
2121
*-------------------------------------------------------------------------
2222
*/
2323

24-
#ifdef XLOG
24+
#include "postgres.h"
2525

26+
#ifdef XLOG
2627
#include "xlog_localbuf.c"
27-
2828
#else
2929

3030
#include <sys/types.h>
3131
#include <sys/file.h>
3232
#include <math.h>
3333
#include <signal.h>
3434

35-
#include "postgres.h"
36-
3735
#include "executor/execdebug.h"
3836
#include "storage/smgr.h"
3937
#include "utils/relcache.h"

0 commit comments

Comments
 (0)