diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2019-12-18 10:22:50 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2019-12-18 10:22:50 -0500 |
commit | bf7427bdd389aa6c266768f2a07214a2a02b85c9 (patch) | |
tree | 1a96531161046f6e7f9fd88726b96b937b0fe433 /src/include/parser/parse_utilcmd.h | |
parent | ecb09cd5de5279ab9cfa20a58fd3da44f7df5779 (diff) | |
download | postgresql-bf7427bdd389aa6c266768f2a07214a2a02b85c9.tar.gz postgresql-bf7427bdd389aa6c266768f2a07214a2a02b85c9.zip |
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/20191218101338.GB325369@paquier.xyz
Diffstat (limited to 'src/include/parser/parse_utilcmd.h')
-rw-r--r-- | src/include/parser/parse_utilcmd.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/parser/parse_utilcmd.h b/src/include/parser/parse_utilcmd.h index 08dd0ce4ca7..ba3f42b04e8 100644 --- a/src/include/parser/parse_utilcmd.h +++ b/src/include/parser/parse_utilcmd.h @@ -16,7 +16,8 @@ #include "parser/parse_node.h" -typedef struct AttrMap AttrMap; +struct AttrMap; /* avoid including attmap.h here */ + extern List *transformCreateStmt(CreateStmt *stmt, const char *queryString); extern List *transformAlterTableStmt(Oid relid, AlterTableStmt *stmt, @@ -30,7 +31,7 @@ extern PartitionBoundSpec *transformPartitionBound(ParseState *pstate, Relation PartitionBoundSpec *spec); extern IndexStmt *generateClonedIndexStmt(RangeVar *heapRel, Relation source_idx, - const AttrMap *attmap, + const struct AttrMap *attmap, Oid *constraintOid); #endif /* PARSE_UTILCMD_H */ |