mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
Fix redefinition of typedef RangeVar.
Commit c8af5019be added a forward declaration for this typedef that
caused redefinitions, which are not valid in C99.
Per buildfarm members longfin and sifaka.
Discussion: https://postgr.es/m/aO_fzfnKVXMd_RUM%40nathan
Backpatch-through: 18 only
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
#include "fmgr.h"
|
||||
|
||||
/* avoid including primnodes.h here */
|
||||
typedef struct RangeVar RangeVar;
|
||||
struct RangeVar;
|
||||
|
||||
struct StatsArgInfo
|
||||
{
|
||||
@@ -33,7 +33,7 @@ extern bool stats_check_arg_pair(FunctionCallInfo fcinfo,
|
||||
struct StatsArgInfo *arginfo,
|
||||
int argnum1, int argnum2);
|
||||
|
||||
extern void RangeVarCallbackForStats(const RangeVar *relation,
|
||||
extern void RangeVarCallbackForStats(const struct RangeVar *relation,
|
||||
Oid relId, Oid oldRelid, void *arg);
|
||||
|
||||
extern bool stats_fill_fcinfo_from_arg_pairs(FunctionCallInfo pairs_fcinfo,
|
||||
|
||||
Reference in New Issue
Block a user