From 8691d2ad5350d4f5251b3e3697df508fb7794974 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 7 Dec 2022 15:47:39 -0800 Subject: [PATCH] Include port.h to fix buggy strtof on some platforms --- src/ivfflat.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ivfflat.h b/src/ivfflat.h index 5780db8..46c2111 100644 --- a/src/ivfflat.h +++ b/src/ivfflat.h @@ -6,14 +6,13 @@ #include "access/generic_xlog.h" #include "access/reloptions.h" #include "nodes/execnodes.h" +#include "port.h" /* for strtof() and random() */ #include "utils/sampling.h" #include "utils/tuplesort.h" #include "vector.h" #if PG_VERSION_NUM >= 150000 #include "common/pg_prng.h" -#else -#include "port.h" #endif #ifdef IVFFLAT_BENCH