diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-08-24 15:10:39 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-08-24 15:10:39 -0400 |
commit | 1d24b649febb8115cec4b35e1108a0556b755732 (patch) | |
tree | c7bd741b02c7f360044b1c0b616f15add6d02d5e /gpsmon.c | |
parent | 5e73bff6263416ac797dce5efd78fc075d0c4832 (diff) | |
download | gpsd-1d24b649febb8115cec4b35e1108a0556b755732.tar.gz |
Fix problems with reconfigure=no and netfeed=no builds.
Diffstat (limited to 'gpsmon.c')
-rw-r--r-- | gpsmon.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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; |