github.com/ncruces/go-sqlite3@v0.15.1-0.20240520133447-53eef1510ff0/sqlite3/vfs_find.patch (about)

     1  # Wrap sqlite3_vfs_find.
     2  # This patch allows Go VFSes to be (un)registered.
     3  --- sqlite3.c.orig
     4  +++ sqlite3.c
     5  @@ -26372,7 +26372,7 @@
     6   ** Locate a VFS by name.  If no name is given, simply return the
     7   ** first VFS on the list.
     8   */
     9  -SQLITE_API sqlite3_vfs *sqlite3_vfs_find(const char *zVfs){
    10  +SQLITE_API sqlite3_vfs *sqlite3_vfs_find_orig(const char *zVfs){
    11     sqlite3_vfs *pVfs = 0;
    12   #if SQLITE_THREADSAFE
    13     sqlite3_mutex *mutex;