pgvector.git / summary / log / commit / refs
commit cd7cab804fbb91b3d277e698bd6cf9347c4ee8e8
Author: Andrew Kane <andrew@ankane.org>
Date: Wed Dec 07 23:17:32 2022 +0000
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 cd37aad4..d8d00c47 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 fc12ff5d..ebb45b1c 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"
[parent: 84a8bdd6614c]