Skip to content

Commit d54bf40

Browse files
authored
Update dwgpsd.c
Fix build with gpsd 3.20 https://gitlab.com/gpsd/gpsd/-/blob/release-3.20/gps.h#L78
1 parent fde5bf6 commit d54bf40

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/dwgpsd.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959
// dwgps.c claims to only support GPSD_API_MAJOR_VERSION 5, but also builds successfully with
6060
// GPSD_API_MAJOR_VERSION 6 provided by libgps22 when the attached patch is applied.
6161

62-
// Also compatible with API 7 & 8 with conditional compilation later.
62+
// Also compatible with API 7, 8 and 9 with conditional compilation later.
6363

64-
#if GPSD_API_MAJOR_VERSION < 5 || GPSD_API_MAJOR_VERSION > 8
64+
#if GPSD_API_MAJOR_VERSION < 5 || GPSD_API_MAJOR_VERSION > 9
6565
#error libgps API version might be incompatible.
6666
#endif
6767

@@ -423,7 +423,8 @@ int main (int argc, char *argv[])
423423
while (1) {
424424
dwfix_t fix;
425425

426-
fix = dwgps_read (&info);
426+
fix = dwgps_read (&info)
427+
;
427428
text_color_set (DW_COLOR_INFO);
428429
switch (fix) {
429430
case DWFIX_2D:

0 commit comments

Comments
 (0)