Skip to content

Commit

Permalink
Fix sqlite3_opt_unlock_notify with USE_LIBSQLITE3 (#1262)
Browse files Browse the repository at this point in the history
A valid sqlite header must always be included (like in the other
files) but sqlite3-binding.h explicitly guards against the system
library case.
  • Loading branch information
q66 authored Dec 9, 2024
1 parent c61eeb5 commit 7658c06
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sqlite3_opt_unlock_notify.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

#ifdef SQLITE_ENABLE_UNLOCK_NOTIFY
#include <stdio.h>
#ifndef USE_LIBSQLITE3
#include "sqlite3-binding.h"
#else
#include <sqlite3.h>
#endif

extern int unlock_notify_wait(sqlite3 *db);

Expand Down
4 changes: 4 additions & 0 deletions sqlite3_opt_unlock_notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ package sqlite3
#cgo CFLAGS: -DSQLITE_ENABLE_UNLOCK_NOTIFY
#include <stdlib.h>
#ifndef USE_LIBSQLITE3
#include "sqlite3-binding.h"
#else
#include <sqlite3.h>
#endif
extern void unlock_notify_callback(void *arg, int argc);
*/
Expand Down

0 comments on commit 7658c06

Please sign in to comment.