Commit 4bd7333b authored by Bruce Momjian's avatar Bruce Momjian

Allow more include files to be compiled in their own by adding missing

include dependencies.

Modify pgcompinclude to skip a common fcinfo error.
parent d010391a
/* contrib/cube/cubedata.h */ /* contrib/cube/cubedata.h */
#include "fmgr.h"
#define CUBE_MAX_DIM (100) #define CUBE_MAX_DIM (100)
typedef struct NDBOX typedef struct NDBOX
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include "postgres.h" #include "postgres.h"
#include "access/xlogdefs.h"
#include "nodes/makefuncs.h" #include "nodes/makefuncs.h"
#include "nodes/replnodes.h" #include "nodes/replnodes.h"
#include "replication/walsender.h" #include "replication/walsender.h"
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include "access/gin.h" #include "access/gin.h"
#include "access/itup.h" #include "access/itup.h"
#include "fmgr.h" #include "fmgr.h"
#include "storage/bufmgr.h"
#include "utils/rbtree.h" #include "utils/rbtree.h"
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include "access/sdir.h" #include "access/sdir.h"
#include "access/xlog.h" #include "access/xlog.h"
#include "fmgr.h" #include "fmgr.h"
#include "storage/bufmgr.h"
#include "storage/lock.h" #include "storage/lock.h"
#include "utils/relcache.h" #include "utils/relcache.h"
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include "access/tupdesc.h" #include "access/tupdesc.h"
#include "access/tupmacs.h" #include "access/tupmacs.h"
#include "storage/bufpage.h"
#include "storage/itemptr.h" #include "storage/itemptr.h"
#include "storage/relfilenode.h" #include "storage/relfilenode.h"
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include "access/sdir.h" #include "access/sdir.h"
#include "access/xlog.h" #include "access/xlog.h"
#include "access/xlogutils.h" #include "access/xlogutils.h"
#include "catalog/pg_index.h"
/* There's room for a 16-bit vacuum cycle ID in BTPageOpaqueData */ /* There's room for a 16-bit vacuum cycle ID in BTPageOpaqueData */
typedef uint16 BTCycleId; typedef uint16 BTCycleId;
......
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
#include "access/rmgr.h" #include "access/rmgr.h"
#include "access/xlogdefs.h" #include "access/xlogdefs.h"
#include "lib/stringinfo.h" #include "lib/stringinfo.h"
#include "replication/walsender.h"
#include "storage/buf.h" #include "storage/buf.h"
#include "utils/pg_crc.h" #include "utils/pg_crc.h"
#include "utils/timestamp.h" #include "utils/timestamp.h"
/* /*
* The overall layout of an XLOG record is: * The overall layout of an XLOG record is:
* Fixed-size header (XLogRecord struct) * Fixed-size header (XLogRecord struct)
......
...@@ -14,6 +14,9 @@ do ...@@ -14,6 +14,9 @@ do
sed 's/->[a-zA-Z0-9_\.]*//g' "$FILE" >/tmp/$$a sed 's/->[a-zA-Z0-9_\.]*//g' "$FILE" >/tmp/$$a
echo "#include \"postgres.h\"" >/tmp/$$.c echo "#include \"postgres.h\"" >/tmp/$$.c
echo "#include \"/tmp/$$a\"" >>/tmp/$$.c echo "#include \"/tmp/$$a\"" >>/tmp/$$.c
# supress fcinfo errors
echo "#undef PG_GETARG_DATUM" >>/tmp/$$.c
echo "#define PG_GETARG_DATUM(n)" >>/tmp/$$.c
echo "void include_test(void);" >>/tmp/$$.c echo "void include_test(void);" >>/tmp/$$.c
echo "void include_test() {" >>/tmp/$$.c echo "void include_test() {" >>/tmp/$$.c
pgdefine "$FILE" >>/tmp/$$.c pgdefine "$FILE" >>/tmp/$$.c
......
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