summaryrefslogtreecommitdiff
path: root/driver_superstar2.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-08-24 15:10:39 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-08-24 15:10:39 -0400
commit1d24b649febb8115cec4b35e1108a0556b755732 (patch)
treec7bd741b02c7f360044b1c0b616f15add6d02d5e /driver_superstar2.c
parent5e73bff6263416ac797dce5efd78fc075d0c4832 (diff)
downloadgpsd-1d24b649febb8115cec4b35e1108a0556b755732.tar.gz
Fix problems with reconfigure=no and netfeed=no builds.
Diffstat (limited to 'driver_superstar2.c')
-rw-r--r--driver_superstar2.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/driver_superstar2.c b/driver_superstar2.c
index d7fa099b..ef14b34d 100644
--- a/driver_superstar2.c
+++ b/driver_superstar2.c
@@ -39,9 +39,11 @@ static gps_mask_t superstar2_msg_ephemeris(struct gps_device_t *,
*/
static ssize_t superstar2_control_send(struct gps_device_t *, char *, size_t);
static void superstar2_event_hook(struct gps_device_t *, event_t);
+static ssize_t superstar2_write(struct gps_device_t *, char *, size_t);
+#ifdef RECONFIGURE_ENABLE
static bool superstar2_set_speed(struct gps_device_t *, speed_t, char, int);
static void superstar2_set_mode(struct gps_device_t *, int);
-static ssize_t superstar2_write(struct gps_device_t *, char *, size_t);
+#endif /* RECONFIGURE_ENABLE */
/*
@@ -521,7 +523,6 @@ static bool superstar2_set_speed(struct gps_device_t *session,
return (superstar2_write(session, (char *)speed_msg, 7) == 7);
}
}
-#endif /* RECONFIGURE_ENABLE */
static void superstar2_set_mode(struct gps_device_t *session, int mode)
{
@@ -538,6 +539,7 @@ static void superstar2_set_mode(struct gps_device_t *session, int mode)
session->back_to_nmea = false;
}
}
+#endif /* RECONFIGURE_ENABLE */
/* *INDENT-OFF* */
const struct gps_type_t superstar2_binary = {