diff options
author | Tom Lane | 2019-12-18 15:22:50 +0000 |
---|---|---|
committer | Tom Lane | 2019-12-18 15:22:50 +0000 |
commit | bf7427bdd389aa6c266768f2a07214a2a02b85c9 (patch) | |
tree | 1a96531161046f6e7f9fd88726b96b937b0fe433 /src/include/rewrite/rewriteManip.h | |
parent | ecb09cd5de5279ab9cfa20a58fd3da44f7df5779 (diff) |
Minimal portability fix for commit e1551f96e.
Older gcc versions are not happy with having multiple declarations
for the same typedef name (not struct name). I'm a bit dubious
as to how well-thought-out that patch was at all, but for the moment
just fix it enough so I can get some work done today.
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/include/rewrite/rewriteManip.h')
-rw-r--r-- | src/include/rewrite/rewriteManip.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/rewrite/rewriteManip.h b/src/include/rewrite/rewriteManip.h index 634cdc235da..eb9ec65793a 100644 --- a/src/include/rewrite/rewriteManip.h +++ b/src/include/rewrite/rewriteManip.h @@ -16,8 +16,9 @@ #include "nodes/parsenodes.h" +struct AttrMap; /* avoid including attmap.h here */ + -typedef struct AttrMap AttrMap; typedef struct replace_rte_variables_context replace_rte_variables_context; typedef Node *(*replace_rte_variables_callback) (Var *var, @@ -72,7 +73,7 @@ extern Node *replace_rte_variables_mutator(Node *node, extern Node *map_variable_attnos(Node *node, int target_varno, int sublevels_up, - const AttrMap *attno_map, + const struct AttrMap *attno_map, Oid to_rowtype, bool *found_whole_row); extern Node *ReplaceVarsFromTargetList(Node *node, |