aboutsummaryrefslogtreecommitdiff
path: root/ext/rtree/rtree.c
diff options
context:
space:
mode:
authordan <Dan Kennedy>2025-05-30 11:14:11 +0000
committerdan <Dan Kennedy>2025-05-30 11:14:11 +0000
commitb65326f51a2c8c9fcb5331cde36d55aa7d209a27 (patch)
tree63804bfff456d9d15754de1324725c23f6692e7c /ext/rtree/rtree.c
parent0148820fd740b0786f703703ba49bbeb6889c9bf (diff)
downloadsqlite-b65326f51a2c8c9fcb5331cde36d55aa7d209a27.tar.gz
sqlite-b65326f51a2c8c9fcb5331cde36d55aa7d209a27.zip
Add "include <stddef.h>" to fts5 and rtree to ensure that they use the system version of the offsetof() macro when it is available, as the built-in version triggers ubsan errors with clang.
FossilOrigin-Name: 838deb7f3423df84061a043928ed34e1d74e2e7d57ef1a9519bb32fea82e4352
Diffstat (limited to 'ext/rtree/rtree.c')
-rw-r--r--ext/rtree/rtree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/rtree/rtree.c b/ext/rtree/rtree.c
index f90fd5a0a..d8567b65a 100644
--- a/ext/rtree/rtree.c
+++ b/ext/rtree/rtree.c
@@ -64,6 +64,8 @@
#endif
int sqlite3GetToken(const unsigned char*,int*); /* In the SQLite core */
+#include <stddef.h>
+
/*
** If building separately, we will need some setup that is normally
** found in sqliteInt.h