diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2007-07-27 16:16:09 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2007-07-27 16:16:09 +0000 |
commit | b90215ee4dad9ced8c8114cdd72615717ea040af (patch) | |
tree | 9168d6547a33c90c6d066d2b9c7a4039a48c5a39 /serial.c | |
parent | 6e555a52d386985ff6898ba0ac17e101d10f6baf (diff) | |
download | gpsd-b90215ee4dad9ced8c8114cdd72615717ea040af.tar.gz |
wrap the NTP SHM setup in the appropriate conditional
Diffstat (limited to 'serial.c')
-rw-r--r-- | serial.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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__) |