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

include dependencies.

Modify pgcompinclude to skip a common fcinfo error.
This commit is contained in:
Bruce Momjian 2011-08-27 11:05:33 -04:00
parent d010391ac8
commit 4bd7333b14
8 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,7 @@
/* contrib/cube/cubedata.h */
#include "fmgr.h"
#define CUBE_MAX_DIM (100)
typedef struct NDBOX

View File

@ -15,6 +15,7 @@
#include "postgres.h"
#include "access/xlogdefs.h"
#include "nodes/makefuncs.h"
#include "nodes/replnodes.h"
#include "replication/walsender.h"

View File

@ -14,6 +14,7 @@
#include "access/gin.h"
#include "access/itup.h"
#include "fmgr.h"
#include "storage/bufmgr.h"
#include "utils/rbtree.h"

View File

@ -22,6 +22,7 @@
#include "access/sdir.h"
#include "access/xlog.h"
#include "fmgr.h"
#include "storage/bufmgr.h"
#include "storage/lock.h"
#include "utils/relcache.h"

View File

@ -16,6 +16,7 @@
#include "access/tupdesc.h"
#include "access/tupmacs.h"
#include "storage/bufpage.h"
#include "storage/itemptr.h"
#include "storage/relfilenode.h"

View File

@ -19,7 +19,7 @@
#include "access/sdir.h"
#include "access/xlog.h"
#include "access/xlogutils.h"
#include "catalog/pg_index.h"
/* There's room for a 16-bit vacuum cycle ID in BTPageOpaqueData */
typedef uint16 BTCycleId;

View File

@ -14,11 +14,11 @@
#include "access/rmgr.h"
#include "access/xlogdefs.h"
#include "lib/stringinfo.h"
#include "replication/walsender.h"
#include "storage/buf.h"
#include "utils/pg_crc.h"
#include "utils/timestamp.h"
/*
* The overall layout of an XLOG record is:
* Fixed-size header (XLogRecord struct)

View File

@ -14,6 +14,9 @@ do
sed 's/->[a-zA-Z0-9_\.]*//g' "$FILE" >/tmp/$$a
echo "#include \"postgres.h\"" >/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() {" >>/tmp/$$.c
pgdefine "$FILE" >>/tmp/$$.c