gentoo-ebuilds/sci-geosciences/gpsd/files/gpsd-3.26.1-qt6.patch
Andreas Sturmlechner a701a83620
sci-geosciences/gpsd: Switch IUSE qt5 to qt6
See also: https://gitlab.com/gpsd/gpsd/-/issues/340

Bug: https://bugs.gentoo.org/962118
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-08-29 21:44:06 +02:00

14 lines
437 B
Diff

Source: https://gitlab.com/gpsd/gpsd/-/issues/340
Thanks-to: James Browning
--- a/libgps/gpsutils.c
+++ b/libgps/gpsutils.c
@@ -833,7 +833,7 @@ timespec_t iso8601_to_timespec(const char *isotime)
if (1 < sl.size()) {
usec = sl[1].toInt() / pow(10., (double)sl[1].size());
}
- ret.tv_sec = d.toTime_t();
+ ret.tv_sec = d.toSecsSinceEpoch();
ret.tv_nsec = usec * 1e9;
#else // USE_QT
double usec = 0;