1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

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: 6ceb1322ef10c1586a7ca97b377dce0c6e35d9abbdbff5a01e841a487eac08cb
This commit is contained in:
drh
2025-05-30 11:55:07 +00:00
parent 4cb03d18a4
commit 175c3582f0
4 changed files with 12 additions and 9 deletions

View File

@ -20,6 +20,7 @@ SQLITE_EXTENSION_INIT1
#include <string.h>
#include <assert.h>
#include <stddef.h>
#ifndef SQLITE_AMALGAMATION

View File

@ -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