From 9d79632c210a8c5002657ae87ff06c70ee109e8f Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 13 Sep 2023 14:28:07 -0700 Subject: [PATCH] Avoid off_t in small_vector.h (#5936) Fixes #5928 , on FreeBSD off_t is not defined in the headers we include. --- src/support/small_vector.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/support/small_vector.h b/src/support/small_vector.h index 4f2dc0b81c3..9ef90d83a93 100644 --- a/src/support/small_vector.h +++ b/src/support/small_vector.h @@ -185,7 +185,9 @@ template class SmallVector { return Iterator(*this) += off; } - off_t operator-(const Iterator& other) const { return index - other.index; } + difference_type operator-(const Iterator& other) const { + return index - other.index; + } bool operator==(const Iterator& other) const { return parent == other.parent && index == other.index;