summaryrefslogtreecommitdiff
path: root/gpsctl.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-09-06 05:14:14 -0400
committerEric S. Raymond <esr@thyrsus.com>2014-09-06 05:19:19 -0400
commit77d0a8490c4333fb8c25f8a33d523e775f1b1156 (patch)
tree7fbdbeac2d44495d9fdec1cd14415de3be33346f /gpsctl.c
parent392356e35d30f573ae34f4416dcd23c8692a1789 (diff)
downloadgpsd-77d0a8490c4333fb8c25f8a33d523e775f1b1156.tar.gz
Minimal option requires conditionalization of some code.
All regression tests pass with default options (GPS tests are disabled with minimal on, because socket_export is off).
Diffstat (limited to 'gpsctl.c')
-rw-r--r--gpsctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsctl.c b/gpsctl.c
index 6ea4a123..7cb0eb50 100644
--- a/gpsctl.c
+++ b/gpsctl.c
@@ -36,6 +36,7 @@ static bool hunting = true;
*/
#define REDIRECT_SNIFF 15
+#if defined(RECONFIGURE_ENABLE) || defined(CONTROLSEND_ENABLE)
static void settle(struct gps_device_t *session)
/* allow the device to settle after a control operation */
{
@@ -46,6 +47,7 @@ static void settle(struct gps_device_t *session)
(void)usleep(50000);
(void)tcdrain(session->gpsdata.gps_fd);
}
+#endif /* defined(RECONFIGURE_ENABLE) || defined(CONTROLSEND_ENABLE) */
/*
* Allows any response other than ERROR. Use it for queries where a