Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4bd7333

Browse files
committed
Allow more include files to be compiled in their own by adding missing
include dependencies. Modify pgcompinclude to skip a common fcinfo error.
1 parent d010391 commit 4bd7333

File tree

8 files changed

+11
-2
lines changed

8 files changed

+11
-2
lines changed

contrib/cube/cubedata.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/* contrib/cube/cubedata.h */
22

3+
#include "fmgr.h"
4+
35
#define CUBE_MAX_DIM (100)
46

57
typedef struct NDBOX

src/backend/replication/repl_gram.y

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
#include "postgres.h"
1717

18+
#include "access/xlogdefs.h"
1819
#include "nodes/makefuncs.h"
1920
#include "nodes/replnodes.h"
2021
#include "replication/walsender.h"

src/include/access/gin_private.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "access/gin.h"
1515
#include "access/itup.h"
1616
#include "fmgr.h"
17+
#include "storage/bufmgr.h"
1718
#include "utils/rbtree.h"
1819

1920

src/include/access/hash.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "access/sdir.h"
2323
#include "access/xlog.h"
2424
#include "fmgr.h"
25+
#include "storage/bufmgr.h"
2526
#include "storage/lock.h"
2627
#include "utils/relcache.h"
2728

src/include/access/htup.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include "access/tupdesc.h"
1818
#include "access/tupmacs.h"
19+
#include "storage/bufpage.h"
1920
#include "storage/itemptr.h"
2021
#include "storage/relfilenode.h"
2122

src/include/access/nbtree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "access/sdir.h"
2020
#include "access/xlog.h"
2121
#include "access/xlogutils.h"
22-
22+
#include "catalog/pg_index.h"
2323

2424
/* There's room for a 16-bit vacuum cycle ID in BTPageOpaqueData */
2525
typedef uint16 BTCycleId;

src/include/access/xlog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
#include "access/rmgr.h"
1515
#include "access/xlogdefs.h"
1616
#include "lib/stringinfo.h"
17+
#include "replication/walsender.h"
1718
#include "storage/buf.h"
1819
#include "utils/pg_crc.h"
1920
#include "utils/timestamp.h"
2021

21-
2222
/*
2323
* The overall layout of an XLOG record is:
2424
* Fixed-size header (XLogRecord struct)

src/tools/pginclude/pgcompinclude

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ do
1414
sed 's/->[a-zA-Z0-9_\.]*//g' "$FILE" >/tmp/$$a
1515
echo "#include \"postgres.h\"" >/tmp/$$.c
1616
echo "#include \"/tmp/$$a\"" >>/tmp/$$.c
17+
# supress fcinfo errors
18+
echo "#undef PG_GETARG_DATUM" >>/tmp/$$.c
19+
echo "#define PG_GETARG_DATUM(n)" >>/tmp/$$.c
1720
echo "void include_test(void);" >>/tmp/$$.c
1821
echo "void include_test() {" >>/tmp/$$.c
1922
pgdefine "$FILE" >>/tmp/$$.c

0 commit comments

Comments
 (0)