--- src/libs/3rdparty/sqlite/sqlite3.c.orig 2024-09-27 01:17:49 UTC +++ src/libs/3rdparty/sqlite/sqlite3.c @@ -14185,7 +14185,7 @@ struct fts5_api { ** But _XOPEN_SOURCE define causes problems for Mac OS X, so omit ** it. */ -#if !defined(_XOPEN_SOURCE) && !defined(__DARWIN__) && !defined(__APPLE__) +#if defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) # define _XOPEN_SOURCE 600 #endif