summaryrefslogtreecommitdiff
path: root/gpsmon.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 /gpsmon.c
parent5e73bff6263416ac797dce5efd78fc075d0c4832 (diff)
downloadgpsd-1d24b649febb8115cec4b35e1108a0556b755732.tar.gz
Fix problems with reconfigure=no and netfeed=no builds.
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gpsmon.c b/gpsmon.c
index b86e932e..d9b5b3a4 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -287,7 +287,9 @@ static void monitor_dump_send(/*@in@*/ const char *buf, size_t len)
(void)wattrset(packetwin, A_NORMAL);
}
}
+#endif /* defined(CONTROLSEND_ENABLE) || defined(RECONFIGURE_ENABLE) */
+#ifdef RECONFIGURE_ENABLE
static void announce_log(/*@in@*/ const char *str)
{
if (packetwin != NULL) {
@@ -301,7 +303,8 @@ static void announce_log(/*@in@*/ const char *str)
(void)fprintf(logfile, ">>>%s\n", str);
}
}
-#endif /* defined(CONTROLSEND_ENABLE) || defined(RECONFIGURE_ENABLE) */
+#endif /* RECONFIGURE_ENABLE */
+
#ifdef CONTROLSEND_ENABLE
bool monitor_control_send( /*@in@*/ unsigned char *buf, size_t len)
@@ -427,9 +430,9 @@ static void onsig(int sig UNUSED)
int main(int argc, char **argv)
{
-#if defined(CONTROLSEND_ENABLE) || defined(RECONFIGURE_ENABLE)
+#ifdef RECONFIGURE_ENABLE
unsigned int v;
-#endif /* defined(CONTROLSEND_ENABLE) || defined(RECONFIGURE_ENABLE) */
+#endif /* RECONFIGURE_ENABLE */
int option, status, last_type = BAD_PACKET;
ssize_t len;
struct fixsource_t source;