summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2007-07-27 16:16:09 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2007-07-27 16:16:09 +0000
commitb90215ee4dad9ced8c8114cdd72615717ea040af (patch)
tree9168d6547a33c90c6d066d2b9c7a4039a48c5a39 /serial.c
parent6e555a52d386985ff6898ba0ac17e101d10f6baf (diff)
downloadgpsd-b90215ee4dad9ced8c8114cdd72615717ea040af.tar.gz
wrap the NTP SHM setup in the appropriate conditional
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/serial.c b/serial.c
index 9fb668ab..181999f2 100644
--- a/serial.c
+++ b/serial.c
@@ -27,9 +27,11 @@ void gpsd_tty_init(struct gps_device_t *session)
/* mark GPS fd closed and its baud rate unknown */
session->gpsdata.gps_fd = -1;
session->saved_baud = -1;
+#ifdef NTPSHM_ENABLE
/* mark NTPD shared memory segments as unused */
session->shmindex = -1;
session->shmTimeP = -1;
+#endif /* NTPSHM_ENABLE */
}
#if defined(__CYGWIN__)