From 3d7fe6c97c1c0c21c44ee422fe79b3623cb8c772 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Thu, 31 Oct 1996 05:58:01 +0000
Subject: [PATCH] Added needed include file.

---
 src/backend/executor/nodeHashjoin.c   | 3 ++-
 src/backend/include/miscadmin.h       | 4 +++-
 src/backend/optimizer/path/costsize.c | 4 +++-
 src/backend/storage/ipc/shmem.c       | 3 ++-
 src/backend/storage/ipc/sinval.c      | 4 +++-
 src/backend/utils/cache/lsyscache.c   | 3 ++-
 src/backend/utils/init/postinit.c     | 3 ++-
 src/bin/pg_dump/Makefile              | 4 +++-
 src/include/access/attnum.h           | 4 +++-
 src/include/libpq/libpq.h             | 3 ++-
 src/include/regex/regex.h             | 2 ++
 src/include/storage/ipc.h             | 4 +++-
 src/include/storage/proc.h            | 3 ++-
 src/include/utils/syscache.h          | 3 ++-
 14 files changed, 34 insertions(+), 13 deletions(-)

diff --git a/src/backend/executor/nodeHashjoin.c b/src/backend/executor/nodeHashjoin.c
index 7ed4c141b95..40fa9d95628 100644
--- a/src/backend/executor/nodeHashjoin.c
+++ b/src/backend/executor/nodeHashjoin.c
@@ -7,12 +7,13 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/executor/nodeHashjoin.c,v 1.1.1.1 1996/07/09 06:21:26 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/executor/nodeHashjoin.c,v 1.2 1996/10/31 05:53:35 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include <sys/file.h>
 
+#include "postgres.h"
 #include "storage/bufmgr.h"	/* for BLCKSZ */
 #include "storage/fd.h"		/* for SEEK_ */
 #include "executor/executor.h"
diff --git a/src/backend/include/miscadmin.h b/src/backend/include/miscadmin.h
index 6af60d7c3cb..3b9721cd7e7 100644
--- a/src/backend/include/miscadmin.h
+++ b/src/backend/include/miscadmin.h
@@ -12,7 +12,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: miscadmin.h,v 1.5 1996/10/23 07:40:32 scrappy Exp $
+ * $Id: miscadmin.h,v 1.6 1996/10/31 05:53:43 momjian Exp $
  *
  * NOTES
  *    some of the information in this file will be moved to
@@ -27,6 +27,8 @@
  *    globals.h --                                                           *
  *****************************************************************************/
 
+#include "postgres.h"
+
 /* #include "storage/sinval.h" */
 
 /*
diff --git a/src/backend/optimizer/path/costsize.c b/src/backend/optimizer/path/costsize.c
index 3497a77ade8..9e88609d923 100644
--- a/src/backend/optimizer/path/costsize.c
+++ b/src/backend/optimizer/path/costsize.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.3 1996/07/22 23:30:50 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.4 1996/10/31 05:53:52 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -38,6 +38,8 @@
 
 #include "storage/bufmgr.h"	/* for BLCKSZ */
 
+extern int NBuffers;
+
 static int compute_attribute_width(TargetEntry *tlistentry);
 static double base_log(double x, double b);
 
diff --git a/src/backend/storage/ipc/shmem.c b/src/backend/storage/ipc/shmem.c
index 4eba3729ac8..5a4fb73d2f8 100644
--- a/src/backend/storage/ipc/shmem.c
+++ b/src/backend/storage/ipc/shmem.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.1.1.1 1996/07/09 06:21:54 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.2 1996/10/31 05:54:42 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -59,6 +59,7 @@
  */
 #include <stdio.h>
 #include <string.h>
+#include <sys/ipc.h>
 #include "postgres.h"
 #include "storage/ipc.h"
 #include "storage/shmem.h"
diff --git a/src/backend/storage/ipc/sinval.c b/src/backend/storage/ipc/sinval.c
index 9151ee77686..a1321020555 100644
--- a/src/backend/storage/ipc/sinval.c
+++ b/src/backend/storage/ipc/sinval.c
@@ -7,12 +7,14 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinval.c,v 1.1.1.1 1996/07/09 06:21:54 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinval.c,v 1.2 1996/10/31 05:54:43 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
 /* #define INVALIDDEBUG	1 */
 
+#include <sys/ipc.h>
+
 #include "postgres.h"
 
 #include "storage/sinval.h"
diff --git a/src/backend/utils/cache/lsyscache.c b/src/backend/utils/cache/lsyscache.c
index b7fc5e26201..d9228fe72b3 100644
--- a/src/backend/utils/cache/lsyscache.c
+++ b/src/backend/utils/cache/lsyscache.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.1.1.1 1996/07/09 06:22:06 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.2 1996/10/31 05:55:32 momjian Exp $
  *
  * NOTES
  *    Eventually, the index information should go through here, too.
@@ -31,6 +31,7 @@
 #include "access/heapam.h"
 
 #include "catalog/pg_amop.h"
+#include "catalog/pg_operator.h"
 #include "catalog/pg_type.h"
 
 /*    		---------- AMOP CACHES ----------			 */
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c
index c82103fd3eb..e327c4f1ca7 100644
--- a/src/backend/utils/init/postinit.c
+++ b/src/backend/utils/init/postinit.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.2 1996/08/27 22:21:34 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.3 1996/10/31 05:55:44 momjian Exp $
  *
  * NOTES
  *	InitPostgres() is the function called from PostgresMain
@@ -31,6 +31,7 @@
 #include <string.h>
 #include <sys/file.h>
 #include <sys/types.h>
+#include <sys/ipc.h>
 #include <math.h>
 
 #include "postgres.h"
diff --git a/src/bin/pg_dump/Makefile b/src/bin/pg_dump/Makefile
index 441c4137ee3..b4847d42742 100644
--- a/src/bin/pg_dump/Makefile
+++ b/src/bin/pg_dump/Makefile
@@ -7,7 +7,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/bin/pg_dump/Makefile,v 1.5 1996/07/31 18:59:00 scrappy Exp $
+#    $Header: /cvsroot/pgsql/src/bin/pg_dump/Makefile,v 1.6 1996/10/31 05:56:01 momjian Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -17,6 +17,8 @@ MKDIR=	../../mk
 include $(MKDIR)/postgres.mk
 include ../Makefile.global
 
+CFLAGS+= -I../../backend/port/$(PORTNAME)
+
 SRCS=	pg_dump.c common.c
 
 include $(MKDIR)/postgres.prog.mk
diff --git a/src/include/access/attnum.h b/src/include/access/attnum.h
index f695db18ea2..e0c1c1f2037 100644
--- a/src/include/access/attnum.h
+++ b/src/include/access/attnum.h
@@ -6,13 +6,15 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: attnum.h,v 1.2 1996/08/28 01:23:59 scrappy Exp $
+ * $Id: attnum.h,v 1.3 1996/10/31 05:56:34 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
 #ifndef	ATTNUM_H
 #define ATTNUM_H
 
+#include "postgres.h"
+
 /*
  * user defined attribute numbers start at 1.	-ay 2/95
  */
diff --git a/src/include/libpq/libpq.h b/src/include/libpq/libpq.h
index d49c644e590..b8243019f70 100644
--- a/src/include/libpq/libpq.h
+++ b/src/include/libpq/libpq.h
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: libpq.h,v 1.3 1996/10/23 07:41:41 scrappy Exp $
+ * $Id: libpq.h,v 1.4 1996/10/31 05:56:42 momjian Exp $
  *
  * NOTES
  *    This file contains definitions for structures and
@@ -19,6 +19,7 @@
 #ifndef LIBPQ_H
 #define LIBPQ_H
 
+#include <sys/types.h>
 #include <netinet/in.h>
 
 #include "libpq/pqcomm.h"
diff --git a/src/include/regex/regex.h b/src/include/regex/regex.h
index fd5484f13fb..8944cf1b062 100644
--- a/src/include/regex/regex.h
+++ b/src/include/regex/regex.h
@@ -40,6 +40,8 @@
 #ifndef _REGEX_H_
 #define	_REGEX_H_
 
+#include <assert.h>
+
 /* #include <sys/cdefs.h> */
 /* since not all systems have cdefs.h, we'll use our own here - jolly */
 #include "cdefs.h"
diff --git a/src/include/storage/ipc.h b/src/include/storage/ipc.h
index 9ee9ef5b9a3..e5baf1c2dbe 100644
--- a/src/include/storage/ipc.h
+++ b/src/include/storage/ipc.h
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: ipc.h,v 1.4 1996/10/19 06:27:12 scrappy Exp $
+ * $Id: ipc.h,v 1.5 1996/10/31 05:57:40 momjian Exp $
  *
  * NOTES
  *    This file is very architecture-specific.  This stuff should actually
@@ -23,6 +23,8 @@
 
 #include <sys/types.h>
 
+#include "postgres.h"
+
 /*
  * Many architectures have support for user-level spinlocks (i.e., an
  * atomic test-and-set instruction).  However, we have only written
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h
index 36dd928d397..2a73757a951 100644
--- a/src/include/storage/proc.h
+++ b/src/include/storage/proc.h
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: proc.h,v 1.1 1996/08/28 01:58:24 scrappy Exp $
+ * $Id: proc.h,v 1.2 1996/10/31 05:57:45 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -16,6 +16,7 @@
 #include "storage/ipc.h"
 #include "storage/lock.h"
 #ifndef WIN32
+#include <sys/ipc.h>
 #include <sys/sem.h>
 #else
 /* This is because WIN32 already defines PROC */
diff --git a/src/include/utils/syscache.h b/src/include/utils/syscache.h
index 2bc34bc4e4e..efd223cdeb7 100644
--- a/src/include/utils/syscache.h
+++ b/src/include/utils/syscache.h
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: syscache.h,v 1.2 1996/10/19 04:16:04 scrappy Exp $
+ * $Id: syscache.h,v 1.3 1996/10/31 05:58:01 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -14,6 +14,7 @@
 #define SYSCACHE_H
 
 #include "access/attnum.h"
+#include "access/htup.h"
 
 /*#define CACHEDEBUG*/ 	/* turns DEBUG elogs on */
 
-- 
GitLab