From: Nathan Bossart Date: Wed, 15 Oct 2025 18:14:00 +0000 (-0500) Subject: Fix redefinition of typedef RangeVar. X-Git-Tag: REL_18_1~85 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=15d7dded0e930b5781b2c0e591c1b45eb078a248;p=postgresql.git 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 --- diff --git a/src/include/statistics/stat_utils.h b/src/include/statistics/stat_utils.h index f41b181d4d3..4283d2c4053 100644 --- a/src/include/statistics/stat_utils.h +++ b/src/include/statistics/stat_utils.h @@ -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,