From bbd33c0ffc6657507c72bc2f3d3f92b45f9c8b3c Mon Sep 17 00:00:00 2001 From: mattn Date: Sat, 6 Apr 2013 23:06:48 +0900 Subject: [PATCH] Fix #54 --- sqlite3.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sqlite3.go b/sqlite3.go index 4d197f1..40458b5 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -5,6 +5,14 @@ package sqlite #include #include +#ifndef SQLITE_OPEN_READWRITE +# define SQLITE_OPEN_READWRITE 0 +#endif + +#ifndef SQLITE_OPEN_FULLMUTEX +# define SQLITE_OPEN_FULLMUTEX 0 +#endif + static int _sqlite3_open_v2(const char *filename, sqlite3 **ppDb, int flags, const char *zVfs) { #ifdef SQLITE_OPEN_URI