summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2008-01-21 01:19:38 +0000
committerGary E. Miller <gem@rellim.com>2008-01-21 01:19:38 +0000
commitcb7301dfa8b6e397381a48e8962bf72cdd10d3d7 (patch)
tree37af8754516d2c53f7d8466768d90b1a925f767a /serial.c
parenta8b4c1338e404d4bf2405c1fc16e5feaeac4aa26 (diff)
downloadgpsd-cb7301dfa8b6e397381a48e8962bf72cdd10d3d7.tar.gz
Fix to allow compiling with --disable-pps to work.
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 18ab76b8..dcfb1c51 100644
--- a/serial.c
+++ b/serial.c
@@ -30,7 +30,9 @@ void gpsd_tty_init(struct gps_device_t *session)
#ifdef NTPSHM_ENABLE
/* mark NTPD shared memory segments as unused */
session->shmindex = -1;
+# ifdef PPS_ENABLE
session->shmTimeP = -1;
+# endif /* PPS_ENABLE */
#endif /* NTPSHM_ENABLE */
}