1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-24 01:29:19 +03:00

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
This commit is contained in:
Tom Lane
2019-12-18 10:22:50 -05:00
parent ecb09cd5de
commit bf7427bdd3
2 changed files with 6 additions and 4 deletions

View File

@@ -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 */