Index: third_party/sqlite/src/src/mutex_noop.c |
diff --git a/third_party/sqlite/src/src/mutex_noop.c b/third_party/sqlite/src/src/mutex_noop.c |
index c5fd5202c2648885e3483ef521d5de35e065457c..1a900c225adeea85188f6c9f87a411ac19ad9913 100644 |
--- a/third_party/sqlite/src/src/mutex_noop.c |
+++ b/third_party/sqlite/src/src/mutex_noop.c |
@@ -107,7 +107,7 @@ static int debugMutexEnd(void){ return SQLITE_OK; } |
** that means that a mutex could not be allocated. |
*/ |
static sqlite3_mutex *debugMutexAlloc(int id){ |
- static sqlite3_debug_mutex aStatic[6]; |
+ static sqlite3_debug_mutex aStatic[SQLITE_MUTEX_STATIC_APP3 - 1]; |
sqlite3_debug_mutex *pNew = 0; |
switch( id ){ |
case SQLITE_MUTEX_FAST: |
@@ -202,5 +202,5 @@ sqlite3_mutex_methods const *sqlite3NoopMutex(void){ |
sqlite3_mutex_methods const *sqlite3DefaultMutex(void){ |
return sqlite3NoopMutex(); |
} |
-#endif /* SQLITE_MUTEX_NOOP */ |
-#endif /* SQLITE_MUTEX_OMIT */ |
+#endif /* defined(SQLITE_MUTEX_NOOP) */ |
+#endif /* !defined(SQLITE_MUTEX_OMIT) */ |