From cd7cab804fbb91b3d277e698bd6cf9347c4ee8e8 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 7 Dec 2022 15:17:32 -0800 Subject: [PATCH] Added port.h for random() function on Windows --- src/ivfbuild.c | 1 + src/ivfkmeans.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ivfbuild.c b/src/ivfbuild.c index cd37aad..d8d00c4 100644 --- a/src/ivfbuild.c +++ b/src/ivfbuild.c @@ -5,6 +5,7 @@ #include "catalog/index.h" #include "ivfflat.h" #include "miscadmin.h" +#include "port.h" #include "storage/bufmgr.h" #if PG_VERSION_NUM >= 140000 diff --git a/src/ivfkmeans.c b/src/ivfkmeans.c index fc12ff5..ebb45b1 100644 --- a/src/ivfkmeans.c +++ b/src/ivfkmeans.c @@ -4,6 +4,7 @@ #include "ivfflat.h" #include "miscadmin.h" +#include "port.h" #if PG_VERSION_NUM >= 150000 #include "common/pg_prng.h"