diff options
author | Gary E. Miller <gem@rellim.com> | 2015-03-19 23:09:35 +0000 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2015-03-19 23:09:53 +0000 |
commit | 2671dc57ce750e04a342667e45e015ab637ef1a7 (patch) | |
tree | fc41d9bfe1fef5d00665f29315dd63e3014d51ef /ppsthread.c | |
parent | 4794ad58b48dc3e3d7def2937fc8ebd8a1f211db (diff) | |
download | gpsd-2671dc57ce750e04a342667e45e015ab637ef1a7.tar.gz |
Tell time_pps_setparam() what version API to use.
Diffstat (limited to 'ppsthread.c')
-rw-r--r-- | ppsthread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ppsthread.c b/ppsthread.c index 135282b3..ae0b1df4 100644 --- a/ppsthread.c +++ b/ppsthread.c @@ -64,6 +64,7 @@ #ifdef PPS_ENABLE #if defined(HAVE_SYS_TIMEPPS_H) +#define PPS_API_VERS_1 1 #include <fcntl.h> /* needed for open() and friends */ #endif /* defined(HAVE_SYS_TIMEPPS_H) */ @@ -309,6 +310,7 @@ static int init_kernel_pps(volatile struct pps_thread_t *pps_thread) #endif #endif /* S_SPLINT_S */ + pp.api_version = PPS_API_VERS_1; if ( 0 > time_pps_setparams(pps_thread->kernelpps_handle, &pp)) { char errbuf[BUFSIZ] = "unknown error"; (void)strerror_r(errno, errbuf, (int)sizeof(errbuf)); |