summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorBruce Momjian2011-08-27 15:05:33 +0000
committerBruce Momjian2011-08-27 15:05:33 +0000
commit4bd7333b14786a2d757195e907709d2aee116809 (patch)
treed8c8cff1356085924bd38ae13221942d4f6c0c7f /src/tools
parentd010391ac8f706e17998671534ca1230f68d2f38 (diff)
Allow more include files to be compiled in their own by adding missing
include dependencies. Modify pgcompinclude to skip a common fcinfo error.
Diffstat (limited to 'src/tools')
-rwxr-xr-xsrc/tools/pginclude/pgcompinclude3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/pginclude/pgcompinclude b/src/tools/pginclude/pgcompinclude
index fdbf58e16a7..89768335e64 100755
--- a/src/tools/pginclude/pgcompinclude
+++ b/src/tools/pginclude/pgcompinclude
@@ -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