diff options
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r-- | libgpsd_core.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c index aa4f4b7a..c30b3dcf 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -231,15 +231,17 @@ void gps_context_init(struct gps_context_t *context) .gps_tow = 0, .century = 0, .rollovers = 0, -#ifdef NTPSHM_ENABLE +#ifdef TIMESERVICE_ENABLE .leap_notify = LEAP_NOWARNING, +#endif /* TIMESERVICE_ENABLE */ +#ifdef NTPSHM_ENABLE .enable_ntpshm = false, .shmTime = {0}, .shmTimeInuse = {0}, +#endif /* NTPSHM_ENABLE */ # ifdef PPS_ENABLE .pps_hook = NULL, # endif /* PPS_ENABLE */ -#endif /* NTPSHM_ENABLE */ #ifdef SHM_EXPORT_ENABLE .shmexport = NULL, #endif /* SHM_EXPORT_ENABLE */ |