mirror of https://git.freebsd.org/ports.git
games/xmoto: fix sqlite related startup crash
PR: 278669 Submitted by: dave@vasilevsky.ca Upstream PR: https://github.com/xmoto/xmoto/pull/188/filesmain
parent
c14f535ae5
commit
52371ce420
|
@ -1,7 +1,7 @@
|
|||
PORTNAME= xmoto
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.6.2
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= games
|
||||
|
||||
MAINTAINER= amdmi3@FreeBSD.org
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
--- src/db/xmDatabase.cpp.orig 2024-04-30 19:43:06 UTC
|
||||
+++ src/db/xmDatabase.cpp
|
||||
@@ -58,6 +58,10 @@ void xmDatabase::openIfNot(const std::string &i_dbFile
|
||||
") : " + sqlite3_errmsg(m_db));
|
||||
}
|
||||
|
||||
+#ifdef SQLITE_DBCONFIG_DQS_DML
|
||||
+ sqlite3_db_config(m_db, SQLITE_DBCONFIG_DQS_DML, 1, NULL);
|
||||
+#endif
|
||||
+
|
||||
sqlite3_busy_timeout(m_db, DB_BUSY_TIMEOUT);
|
||||
sqlite3_trace(m_db, sqlTrace, NULL);
|
||||
createUserFunctions();
|
Loading…
Reference in New Issue