Commit 66637f4a authored by Marc G. Fournier's avatar Marc G. Fournier

Clean up Makefile

Add #include "postgres.h" as required

Remove #include "utils/elog.h"
parent c4edfb46
...@@ -4,16 +4,14 @@ ...@@ -4,16 +4,14 @@
# Makefile for storage/buffer # Makefile for storage/buffer
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/buffer/Makefile,v 1.1 1996/10/27 09:51:54 bryanh Exp $ # $Header: /cvsroot/pgsql/src/backend/storage/buffer/Makefile,v 1.2 1996/11/03 04:56:57 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. \ INCLUDE_OPT = -I../../port/$(PORTNAME) \
-I../../port/$(PORTNAME) \
-I../../include \
-I../../../include -I../../../include
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_init.c,v 1.1.1.1 1996/07/09 06:21:53 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_init.c,v 1.2 1996/11/03 04:56:58 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
#include <math.h> #include <math.h>
#include <signal.h> #include <signal.h>
#include "postgres.h"
/* declarations split between these three files */ /* declarations split between these three files */
#include "storage/buf.h" #include "storage/buf.h"
#include "storage/buf_internals.h" #include "storage/buf_internals.h"
...@@ -30,7 +32,6 @@ ...@@ -30,7 +32,6 @@
#include "miscadmin.h" #include "miscadmin.h"
#include "utils/builtins.h" #include "utils/builtins.h"
#include "utils/hsearch.h" #include "utils/hsearch.h"
#include "utils/elog.h"
#include "utils/memutils.h" #include "utils/memutils.h"
#include "executor/execdebug.h" /* for NDirectFileRead */ #include "executor/execdebug.h" /* for NDirectFileRead */
#include "catalog/catalog.h" #include "catalog/catalog.h"
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_table.c,v 1.2 1996/07/30 07:47:23 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_table.c,v 1.3 1996/11/03 04:56:59 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -25,12 +25,14 @@ ...@@ -25,12 +25,14 @@
* All routines in this file assume buffer manager spinlock is * All routines in this file assume buffer manager spinlock is
* held by their caller. * held by their caller.
*/ */
#include "postgres.h"
#include "storage/bufmgr.h" #include "storage/bufmgr.h"
#include "storage/buf_internals.h" /* where the declarations go */ #include "storage/buf_internals.h" /* where the declarations go */
#include "storage/shmem.h" #include "storage/shmem.h"
#include "storage/spin.h" #include "storage/spin.h"
#include "utils/hsearch.h" #include "utils/hsearch.h"
#include "utils/elog.h"
static HTAB *SharedBufHash; static HTAB *SharedBufHash;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.3 1996/09/19 19:50:48 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.4 1996/11/03 04:57:00 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -51,6 +51,8 @@ ...@@ -51,6 +51,8 @@
#include <math.h> #include <math.h>
#include <signal.h> #include <signal.h>
#include "postgres.h"
/* declarations split between these three files */ /* declarations split between these three files */
#include "storage/buf.h" #include "storage/buf.h"
#include "storage/buf_internals.h" #include "storage/buf_internals.h"
...@@ -65,7 +67,6 @@ ...@@ -65,7 +67,6 @@
#include "miscadmin.h" #include "miscadmin.h"
#include "utils/builtins.h" #include "utils/builtins.h"
#include "utils/hsearch.h" #include "utils/hsearch.h"
#include "utils/elog.h"
#include "utils/palloc.h" #include "utils/palloc.h"
#include "utils/memutils.h" #include "utils/memutils.h"
#include "executor/execdebug.h" /* for NDirectFileRead */ #include "executor/execdebug.h" /* for NDirectFileRead */
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v 1.1.1.1 1996/07/09 06:21:54 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v 1.2 1996/11/03 04:57:02 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -24,10 +24,12 @@ ...@@ -24,10 +24,12 @@
* semaphore has been acquired by the caller. * semaphore has been acquired by the caller.
*/ */
#include <stdio.h> #include <stdio.h>
#include "postgres.h"
#include "storage/bufmgr.h" #include "storage/bufmgr.h"
#include "storage/buf_internals.h" /* where declarations go */ #include "storage/buf_internals.h" /* where declarations go */
#include "storage/spin.h" #include "storage/spin.h"
#include "utils/elog.h"
static BufferDesc *SharedFreeList; static BufferDesc *SharedFreeList;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/localbuf.c,v 1.1.1.1 1996/07/09 06:21:54 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/localbuf.c,v 1.2 1996/11/03 04:57:03 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
#include <math.h> #include <math.h>
#include <signal.h> #include <signal.h>
#include "postgres.h"
/* declarations split between these three files */ /* declarations split between these three files */
#include "storage/buf.h" #include "storage/buf.h"
#include "storage/buf_internals.h" #include "storage/buf_internals.h"
...@@ -38,7 +40,6 @@ ...@@ -38,7 +40,6 @@
#include "miscadmin.h" #include "miscadmin.h"
#include "utils/builtins.h" #include "utils/builtins.h"
#include "utils/hsearch.h" #include "utils/hsearch.h"
#include "utils/elog.h"
#include "utils/memutils.h" #include "utils/memutils.h"
#include "executor/execdebug.h" /* for NDirectFileRead */ #include "executor/execdebug.h" /* for NDirectFileRead */
#include "catalog/catalog.h" #include "catalog/catalog.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment