summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2006-08-17 17:10:04 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2006-08-17 17:10:04 +0000
commit0d725926920e67bff33e3b7d572dd78bd0c6da71 (patch)
treec4788f5b6a25f53fb78f51a6d6e602ef9b686a63
parent95ad572acbae912a2639e26386611c50cf5e0c81 (diff)
downloadgpsd-0d725926920e67bff33e3b7d572dd78bd0c6da71.tar.gz
Allow this to compile when only the SiRF protocol is enabled
-rw-r--r--dgnss.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dgnss.c b/dgnss.c
index 3c1bfb4d..ee0ae792 100644
--- a/dgnss.c
+++ b/dgnss.c
@@ -25,8 +25,10 @@ bool dgnss_url(char *name)
int dgnss_open(struct gps_context_t *context, char *dgnss_service)
/* open a connection to a DGNSS service */
{
+#ifdef NTRIP_ENABLE
if (strncmp(dgnss_service,DGNSS_PROTO_NTRIP,strlen(DGNSS_PROTO_NTRIP))==0)
return ntrip_open(context, dgnss_service + strlen(DGNSS_PROTO_NTRIP));
+#endif
if (strncmp(dgnss_service,DGNSS_PROTO_DGPSIP,strlen(DGNSS_PROTO_DGPSIP))==0)
return dgpsip_open(context, dgnss_service + strlen(DGNSS_PROTO_DGPSIP));
@@ -58,8 +60,10 @@ void dgnss_report(struct gps_device_t *session)
{
if (session->context->dgnss_service == dgnss_dgpsip)
dgpsip_report(session);
+#ifdef NTRIP_ENABLE
else if (session->context->dgnss_service == dgnss_ntrip)
ntrip_report(session);
+#endif
}
void dgnss_autoconnect(struct gps_context_t *context, double lat, double lon)