Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit66637f4

Browse files
committed
Clean up Makefile
Add #include "postgres.h" as requiredRemove #include "utils/elog.h"
1 parentc4edfb4 commit66637f4

File tree

6 files changed

+19
-14
lines changed

6 files changed

+19
-14
lines changed

‎src/backend/storage/buffer/Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44
# Makefile for storage/buffer
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/backend/storage/buffer/Makefile,v 1.1 1996/10/27 09:51:54 bryanh Exp $
7+
# $Header: /cvsroot/pgsql/src/backend/storage/buffer/Makefile,v 1.2 1996/11/03 04:56:57 scrappy Exp $
88
#
99
#-------------------------------------------------------------------------
1010

1111
SRCDIR = ../../..
1212
include ../../../Makefile.global
1313

14-
INCLUDE_OPT = -I../..\
15-
-I../../port/$(PORTNAME)\
16-
-I../../include\
14+
INCLUDE_OPT = -I../../port/$(PORTNAME)\
1715
-I../../../include
1816

1917
CFLAGS+=$(INCLUDE_OPT)

‎src/backend/storage/buffer/buf_init.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_init.c,v 1.1.1.1 1996/07/09 06:21:53 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_init.c,v 1.2 1996/11/03 04:56:58 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -16,6 +16,8 @@
1616
#include<math.h>
1717
#include<signal.h>
1818

19+
#include"postgres.h"
20+
1921
/* declarations split between these three files */
2022
#include"storage/buf.h"
2123
#include"storage/buf_internals.h"
@@ -30,7 +32,6 @@
3032
#include"miscadmin.h"
3133
#include"utils/builtins.h"
3234
#include"utils/hsearch.h"
33-
#include"utils/elog.h"
3435
#include"utils/memutils.h"
3536
#include"executor/execdebug.h"/* for NDirectFileRead */
3637
#include"catalog/catalog.h"

‎src/backend/storage/buffer/buf_table.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_table.c,v 1.2 1996/07/30 07:47:23 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_table.c,v 1.3 1996/11/03 04:56:59 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -25,12 +25,14 @@
2525
* All routines in this file assume buffer manager spinlock is
2626
* held by their caller.
2727
*/
28+
29+
#include"postgres.h"
30+
2831
#include"storage/bufmgr.h"
2932
#include"storage/buf_internals.h"/* where the declarations go */
3033
#include"storage/shmem.h"
3134
#include"storage/spin.h"
3235
#include"utils/hsearch.h"
33-
#include"utils/elog.h"
3436

3537
staticHTAB*SharedBufHash;
3638

‎src/backend/storage/buffer/bufmgr.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.3 1996/09/19 19:50:48 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.4 1996/11/03 04:57:00 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -51,6 +51,8 @@
5151
#include<math.h>
5252
#include<signal.h>
5353

54+
#include"postgres.h"
55+
5456
/* declarations split between these three files */
5557
#include"storage/buf.h"
5658
#include"storage/buf_internals.h"
@@ -65,7 +67,6 @@
6567
#include"miscadmin.h"
6668
#include"utils/builtins.h"
6769
#include"utils/hsearch.h"
68-
#include"utils/elog.h"
6970
#include"utils/palloc.h"
7071
#include"utils/memutils.h"
7172
#include"executor/execdebug.h"/* for NDirectFileRead */

‎src/backend/storage/buffer/freelist.c

Lines changed: 4 additions & 2 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/freelist.c,v 1.1.1.1 1996/07/09 06:21:54 scrappy Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v 1.2 1996/11/03 04:57:02 scrappy Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -24,10 +24,12 @@
2424
* semaphore has been acquired by the caller.
2525
*/
2626
#include<stdio.h>
27+
28+
#include"postgres.h"
29+
2730
#include"storage/bufmgr.h"
2831
#include"storage/buf_internals.h"/* where declarations go */
2932
#include"storage/spin.h"
30-
#include"utils/elog.h"
3133

3234

3335
staticBufferDesc*SharedFreeList;

‎src/backend/storage/buffer/localbuf.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*
1717
* IDENTIFICATION
18-
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/localbuf.c,v 1.1.1.1 1996/07/09 06:21:54 scrappy Exp $
18+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/localbuf.c,v 1.2 1996/11/03 04:57:03 scrappy Exp $
1919
*
2020
*-------------------------------------------------------------------------
2121
*/
@@ -24,6 +24,8 @@
2424
#include<math.h>
2525
#include<signal.h>
2626

27+
#include"postgres.h"
28+
2729
/* declarations split between these three files */
2830
#include"storage/buf.h"
2931
#include"storage/buf_internals.h"
@@ -38,7 +40,6 @@
3840
#include"miscadmin.h"
3941
#include"utils/builtins.h"
4042
#include"utils/hsearch.h"
41-
#include"utils/elog.h"
4243
#include"utils/memutils.h"
4344
#include"executor/execdebug.h"/* for NDirectFileRead */
4445
#include"catalog/catalog.h"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp