diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2006-08-17 17:10:04 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2006-08-17 17:10:04 +0000 |
commit | 0d725926920e67bff33e3b7d572dd78bd0c6da71 (patch) | |
tree | c4788f5b6a25f53fb78f51a6d6e602ef9b686a63 | |
parent | 95ad572acbae912a2639e26386611c50cf5e0c81 (diff) | |
download | gpsd-0d725926920e67bff33e3b7d572dd78bd0c6da71.tar.gz |
Allow this to compile when only the SiRF protocol is enabled
-rw-r--r-- | dgnss.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |