Ticket #1464: patch.gpsd

File patch.gpsd, 1.8 KB (added by shadow@…, 20 years ago)

Patch to bring gpsd to current CVS level. Will be in 1.11

Line 
1--- gpsd-1.10-CHANGELOG Fri Jan 30 17:22:42 2004
2+++ CHANGELOG   Thu Jan 29 12:11:13 2004
3@@ -48,3 +48,6 @@
4         Add install target. Fix clean target. Make GPS timeout configurable.
5         Make xgpsspeed build with Apple's X11.
6         Make sure that we don't segfault if the NMEA is badly formed.
7+20031220
8+        Removed <varargs.h> from netlib. Not needed, and new gcc does not support
9+        it any more.
10--- gpsd-1.10-README.protocol   Fri Jan 30 17:22:42 2004
11+++ README.protocol     Thu Jan 29 12:11:13 2004
12@@ -21,6 +21,7 @@
13        d  Returns the date in the form "D=%s".
14        a  The current altitude as "A=%f".
15        v  The current speed (velocity) as "V=%f".
16+       t  The track (direction of movement) as "T=%d".
17        s  The gps status as "S=%d".
18        m  The gps mode as "M=%d".
19        r  Toggles 'raw' mode. Return "R=0" or "R=1"
20--- gpsd-1.10-gpsd.c    Fri Jan 30 17:22:42 2004
21+++ gpsd.c      Thu Jan 29 12:11:13 2004
22@@ -523,6 +523,12 @@
23                    ",V=%f",
24                    gNMEAdata.speed);
25            break;
26+       case 'T':
27+       case 't':
28+           sprintf(reply + strlen(reply),
29+                   ",T=%f",
30+                   gNMEAdata.track);
31+           break;
32        case 'G':
33        case 'g':
34            sprintf(reply + strlen(reply),
35--- gpsd-1.10-netlib.c  Sat Oct 26 21:35:49 2002
36+++ netlib.c    Thu Jan 29 12:11:13 2004
37@@ -9,7 +9,6 @@
38 #include <sys/types.h>
39 #include <sys/socket.h>
40 #include <netinet/in.h>
41-#include <varargs.h>
42 #include <netdb.h>
43 #include <stdio.h>
44 #include <arpa/inet.h>
45--- gpsd-1.10-gps.c     Mon Feb 17 18:57:28 2003
46+++ gps.c       Fri Jan 30 17:38:08 2004
47@@ -87,6 +87,7 @@
48     "*gps_data.altitude.label.labelString: Alt.",
49     "*gps_data.fix_status.label.labelString: Stat",
50     "*gps_data.quit.label.labelString: Quit",
51+    NULL
52 };
53 
54 
55--- gpsd-1.10-xgpsspeed.c       Wed Aug 20 01:38:55 2003
56+++ xgpsspeed.c Fri Jan 30 17:38:41 2004
57@@ -54,6 +54,7 @@
58 
59 String fallback_resources[] =
60 {
61+  NULL
62 };
63 
64 static void open_input(XtAppContext app);