aboutsummaryrefslogtreecommitdiffstats
path: root/package/gpsd/gpsd-2.95-navcom.patch
blob: 659cea1d81c9cec58da7c2dc1fce343a30f234ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[PATCH] Navcom needs binary support

Enable binary support when navcom driver is enabled, otherwise the build
errors out with:

./libgpsd.so: undefined reference to `navcom_binary'

If no other drivers needing binary support are enabled.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 driver_navcom.c |    4 ++--
 gpsd.h-tail     |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

Index: gpsd-2.95/driver_navcom.c
===================================================================
--- gpsd-2.95.orig/driver_navcom.c
+++ gpsd-2.95/driver_navcom.c
@@ -44,7 +44,7 @@
 #include <stdio.h>
 #include "gpsd.h"
 
-#if defined(NAVCOM_ENABLE) && defined(BINARY_ENABLE)
+#if defined(NAVCOM_ENABLE)
 #include "bits.h"
 
 /* Have data which is 24 bits long */
@@ -1339,4 +1339,4 @@
 };
 /* *INDENT-ON* */
 
-#endif /* defined(NAVCOM_ENABLE) && defined(BINARY_ENABLE) */
+#endif /* defined(NAVCOM_ENABLE) */
Index: gpsd-2.95/gpsd.h-tail
===================================================================
--- gpsd-2.95.orig/gpsd.h-tail
+++ gpsd-2.95/gpsd.h-tail
@@ -30,7 +30,7 @@
 #ifdef EARTHMATE_ENABLE
 #define ZODIAC_ENABLE	
 #endif
-#if defined(ZODIAC_ENABLE) || defined(SIRF_ENABLE) || defined(GARMIN_ENABLE) || defined(TSIP_ENABLE) || defined(EVERMORE_ENABLE) || defined(ITRAX_ENABLE) || defined(UBX_ENABLE) || defined(SUPERSTAR2_ENABLE) || defined(ONCORE_ENABLE)
+#if defined(ZODIAC_ENABLE) || defined(SIRF_ENABLE) || defined(GARMIN_ENABLE) || defined(TSIP_ENABLE) || defined(EVERMORE_ENABLE) || defined(ITRAX_ENABLE) || defined(UBX_ENABLE) || defined(SUPERSTAR2_ENABLE) || defined(ONCORE_ENABLE) || defined(NAVCOM_ENABLE)
 #define BINARY_ENABLE	
 #endif
 #if defined(TRIPMATE_ENABLE) || defined(BINARY_ENABLE)