From 21f0e9b35df5cbdde2f74a212e00a760df3d4354 Mon Sep 17 00:00:00 2001 From: Feng Ruohang Date: Tue, 29 Oct 2024 16:38:19 +0800 Subject: [PATCH] include varatt.h for PostgreSQL 16/17 support --- emailaddr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emailaddr.c b/emailaddr.c index 6bbd9d2..39eff3b 100644 --- a/emailaddr.c +++ b/emailaddr.c @@ -2,6 +2,11 @@ #include #include +#ifdef PG_VERSION_NUM + #if PG_VERSION_NUM >= 160000 + #include "varatt.h" + #endif +#endif PG_MODULE_MAGIC;