Skip to content

Commit

Permalink
games/xmoto: fix sqlite related startup crash
Browse files Browse the repository at this point in the history
PR:		278669
Submitted by:	dave@vasilevsky.ca
Upstream PR:	https://github.com/xmoto/xmoto/pull/188/files
  • Loading branch information
AMDmi3 committed May 14, 2024
1 parent c14f535 commit 52371ce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion games/xmoto/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PORTNAME= xmoto
DISTVERSIONPREFIX= v
DISTVERSION= 0.6.2
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= games

MAINTAINER= amdmi3@FreeBSD.org
Expand Down
13 changes: 13 additions & 0 deletions games/xmoto/files/patch-src_db_xmDatabase.cpp
Original file line number Diff line number Diff line change
@@ -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();

0 comments on commit 52371ce

Please sign in to comment.