From 1c698a5b55e360c5e5863c9e0d5b3fe9fd6e23ec Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Wed, 22 Mar 2017 19:51:17 +0300 Subject: [PATCH] just compile for 10.0 --- gevel.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gevel.c b/gevel.c index bfadb97..f20ec38 100644 --- a/gevel.c +++ b/gevel.c @@ -27,6 +27,10 @@ #if PG_VERSION_NUM >= 80300 #include #endif +#if PG_VERSION_NUM >= 100000 +#include +#include +#endif #include #include "utils/builtins.h" #include "utils/lsyscache.h" @@ -842,7 +846,11 @@ gin_count_estimate(PG_FUNCTION_ARGS) { char *relname=t2c(name); ScanKeyData key; #if PG_VERSION_NUM >= 80400 - TIDBitmap *bitmap = tbm_create(work_mem * 1024L); + TIDBitmap *bitmap = tbm_create(work_mem * 1024L +#if PG_VERSION_NUM >= 100000 + , NULL +#endif + ); #else #define MAXTIDS 1024 ItemPointerData tids[MAXTIDS]; -- 2.46.1