1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-20 17:55:15 +03:00
aports/testing/kismet/sqlite3-longlong.patch
George Hopkins 262174f953 testing/kismet: new aport
https://www.kismetwireless.net/
Wireless network and device detector
2021-01-09 19:29:11 +00:00

21 lines
806 B
Diff

On some systems time_t is defined as long long. In this case, the
current release does not contain the appropriate getter to read
values of this type from the database.
https://github.com/kismetwireless/kismet/pull/334
diff -ru a/sqlite3_cpp11.cc b/sqlite3_cpp11.cc
--- a/sqlite3_cpp11.cc 2020-12-06 21:24:46.000000000 +0100
+++ b/sqlite3_cpp11.cc 2021-01-04 11:21:17.239367923 +0100
@@ -412,6 +412,11 @@
}
template<>
+ long long sqlite3_column_as(std::shared_ptr<sqlite3_stmt> stmt, unsigned int column) {
+ return (long long) sqlite3_column_int64(stmt.get(), column);
+ }
+
+ template<>
unsigned long long sqlite3_column_as(std::shared_ptr<sqlite3_stmt> stmt, unsigned int column) {
return (unsigned long long) sqlite3_column_int64(stmt.get(), column);
}