From e4725ee76a3fcdf40548c93badc4a8f679a953bb Mon Sep 17 00:00:00 2001
From: "Marc G. Fournier" <scrappy@hub.org>
Date: Tue, 5 Nov 1996 11:57:55 +0000
Subject: [PATCH] Makes it compile...still needs work

---
 src/backend/catalog/heap.c        |  5 ++++-
 src/backend/catalog/index.c       | 13 ++++++++++++-
 src/backend/catalog/pg_operator.c |  5 ++++-
 src/backend/catalog/pg_proc.c     |  4 +++-
 src/backend/catalog/pg_type.c     |  5 ++++-
 5 files changed, 27 insertions(+), 5 deletions(-)

diff --git a/src/backend/catalog/heap.c b/src/backend/catalog/heap.c
index 678b752190f..45ad0408598 100644
--- a/src/backend/catalog/heap.c
+++ b/src/backend/catalog/heap.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.3 1996/11/03 23:27:01 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.4 1996/11/05 11:57:50 scrappy Exp $
  *
  * INTERFACE ROUTINES
  *	heap_creatr()		- Create an uncataloged heap relation
@@ -30,6 +30,9 @@
 
 #include "postgres.h"
 
+#include <catalog/heap.h>
+#include <catalog/pg_proc.h>
+
 #include "parser/catalog_utils.h"
 
 #include "access/heapam.h"
diff --git a/src/backend/catalog/index.c b/src/backend/catalog/index.c
index 51223accc49..a027b8928ab 100644
--- a/src/backend/catalog/index.c
+++ b/src/backend/catalog/index.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.5 1996/11/03 23:27:02 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.6 1996/11/05 11:57:52 scrappy Exp $
  *
  *
  * INTERFACE ROUTINES
@@ -25,6 +25,10 @@
  */
 #include "postgres.h"
 
+#include <catalog/pg_proc.h>
+#include <storage/bufmgr.h>
+#include <fmgr.h>
+
 #include "access/genam.h"
 #include "access/heapam.h"
 #include "utils/builtins.h"
@@ -60,6 +64,11 @@
 #include "optimizer/prep.h"
 
 #include "access/istrat.h"
+#ifndef HAVE_MEMMOVE
+# include <regex/utils.h>
+#else
+# include <string.h>
+#endif
 
 /*
  * macros used in guessing how many tuples are on a page.
@@ -1469,9 +1478,11 @@ DefaultBuild(Relation heapRelation,
     Datum		*datum;
     char		*nullv;
     long		reltuples, indtuples;
+#ifndef OMIT_PARTIAL_INDEX
     ExprContext		*econtext;
     TupleTable		tupleTable;
     TupleTableSlot	*slot;
+#endif
     Node		*predicate;
     Node		*oldPred;
     
diff --git a/src/backend/catalog/pg_operator.c b/src/backend/catalog/pg_operator.c
index 4fadf3fd7fc..b980da799b0 100644
--- a/src/backend/catalog/pg_operator.c
+++ b/src/backend/catalog/pg_operator.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.3 1996/11/03 23:27:06 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.4 1996/11/05 11:57:53 scrappy Exp $
  *
  * NOTES
  *    these routines moved here from commands/define.c and somewhat cleaned up.
@@ -17,6 +17,9 @@
 #include <string.h>
 #include "postgres.h"
 
+#include <catalog/pg_proc.h>
+#include <utils/syscache.h>
+
 #include "access/heapam.h"
 #include "access/skey.h"
 #include "access/htup.h"
diff --git a/src/backend/catalog/pg_proc.c b/src/backend/catalog/pg_proc.c
index ddf12be6c06..c6c01186eb5 100644
--- a/src/backend/catalog/pg_proc.c
+++ b/src/backend/catalog/pg_proc.c
@@ -7,12 +7,14 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.2 1996/11/03 23:27:07 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.3 1996/11/05 11:57:54 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include <string.h>
 #include "postgres.h"
+#include <utils/syscache.h>
+#include <catalog/pg_proc.h>
 
 #include "access/heapam.h"
 #include "access/relscan.h"
diff --git a/src/backend/catalog/pg_type.c b/src/backend/catalog/pg_type.c
index c7e7ea8e5bf..6fbca03cb09 100644
--- a/src/backend/catalog/pg_type.c
+++ b/src/backend/catalog/pg_type.c
@@ -7,12 +7,15 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/catalog/pg_type.c,v 1.2 1996/11/03 23:27:08 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/catalog/pg_type.c,v 1.3 1996/11/05 11:57:55 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include <string.h>
 #include "postgres.h"
+#include <utils/syscache.h>
+#include <catalog/pg_proc.h>
+
 
 #include "access/heapam.h"
 #include "access/relscan.h"
-- 
GitLab