projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
a0f8c62
)
Merge pull request #2947 from baruchsiach/fix-build-gpsd
author
Pavel Rochnyak
<pavel2000@ngs.ru>
Wed, 10 Oct 2018 03:04:21 +0000
(10:04 +0700)
committer
GitHub
<noreply@github.com>
Wed, 10 Oct 2018 03:04:21 +0000
(10:04 +0700)
gps plugin: fix build with newer gpsd
src/gps.c
patch
|
blob
|
history
diff --git
a/src/gps.c
b/src/gps.c
index
1d32d04
..
b22c3a2
100644
(file)
--- a/
src/gps.c
+++ b/
src/gps.c
@@
-141,7
+141,12
@@
static void *cgps_thread(void *pData) {
continue;
}
- if (gps_read(&gpsd_conn) == -1) {
+#if GPSD_API_MAJOR_VERSION > 6
+ if (gps_read(&gpsd_conn, NULL, 0) == -1)
+#else
+ if (gps_read(&gpsd_conn) == -1)
+#endif
+ {
WARNING("gps plugin: incorrect data! (err_count: %d)", err_count);
err_count++;