diff --git a/src/backend/lib/bipartite_match.c b/src/backend/lib/bipartite_match.c
index 9c08b2895d10d4182cfe0cee6aec308f47798931..1adba78ff34a9f1be67fcee9ae34b099e5f372e1 100644
--- a/src/backend/lib/bipartite_match.c
+++ b/src/backend/lib/bipartite_match.c
@@ -16,6 +16,7 @@
  */
 #include "postgres.h"
 
+#include <float.h>
 #include <math.h>
 #include <limits.h>