summaryrefslogtreecommitdiff
path: root/gpsd.h-tail
diff options
context:
space:
mode:
authorReinhard Arlt <reinhard.arlt@t-online.de>2013-10-30 17:11:20 +0100
committerReinhard Arlt <reinhard.arlt@t-online.de>2013-10-30 17:11:20 +0100
commit7a5a25946be3db4bd8c08d1a5b126f43131144eb (patch)
tree469b5d4208457ab83697f1047b6f658f5bfa81a0 /gpsd.h-tail
parent0e1ed83c3bfe7057a8bd089377d52557f5b0c4df (diff)
parente9156e127a0d47a469a67882b00b4e7a635a8f5f (diff)
downloadgpsd-7a5a25946be3db4bd8c08d1a5b126f43131144eb.tar.gz
Merge branch 'master' of git://git.sv.gnu.org/gpsd
Diffstat (limited to 'gpsd.h-tail')
-rw-r--r--gpsd.h-tail10
1 files changed, 5 insertions, 5 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail
index 29a79a2b..a11bcac3 100644
--- a/gpsd.h-tail
+++ b/gpsd.h-tail
@@ -250,11 +250,11 @@ struct gps_context_t {
* 'optimize' as 'dead code' the writes to SHM */
/*@reldef@*/volatile struct shmTime *shmTime[NTPSHMSEGS];
bool shmTimeInuse[NTPSHMSEGS];
+#endif /* NTPSHM_ENABLE */
# ifdef PPS_ENABLE
/*@null@*/ void (*pps_hook)(struct gps_device_t *,
unsigned long, struct timespec *);
# endif /* PPS_ENABLE */
-#endif /* NTPSHM_ENABLE */
#ifdef SHM_EXPORT_ENABLE
/* we don't want the compiler to treat writes to shmexport as dead code,
* and we don't want them reordered either */
@@ -463,10 +463,11 @@ struct gps_device_t {
#endif /* TIMING_ENABLE */
#ifdef NTPSHM_ENABLE
int shmindex;
- timestamp_t last_fixtime; /* so updates happen once */
bool ship_to_ntpd;
-# ifdef PPS_ENABLE
+#endif /* NTPSHM_ENABLE */
+#ifdef PPS_ENABLE
int shmTimeP;
+ timestamp_t last_fixtime; /* so updates happen once */
#if defined(HAVE_SYS_TIMEPPS_H)
pps_handle_t kernelpps_handle;
#endif /* defined(HAVE_SYS_TIMEPPS_H) */
@@ -478,8 +479,7 @@ struct gps_device_t {
struct timespec *,
double);
/*@null@*/ void (*thread_wrap_hook)(struct gps_device_t *);
-# endif /* PPS_ENABLE */
-#endif /* NTPSHM_ENABLE */
+#endif /* PPS_ENABLE */
double mag_var; /* magnetic variation in degrees */
bool back_to_nmea; /* back to NMEA on revert? */
char msgbuf[MAX_PACKET_LENGTH*2+1]; /* command message buffer for sends */