aboutsummaryrefslogtreecommitdiffstats
path: root/main/gpsd/gpsd-use-local-timepps-header.patch
diff options
context:
space:
mode:
authorNathan Angelacos <nangel@alpinelinux.org>2018-01-21 13:50:21 -0500
committerTimo Teräs <timo.teras@iki.fi>2018-02-01 20:14:40 +0000
commit6a9f2a91c955bce8a4e2d2ad2fe1b919acf0155c (patch)
tree43ea30db1566925161a68c69af053be798459379 /main/gpsd/gpsd-use-local-timepps-header.patch
parentaeab50c64318f49054e86eb7692f1c2925f904ce (diff)
downloadaports-6a9f2a91c955bce8a4e2d2ad2fe1b919acf0155c.tar.bz2
aports-6a9f2a91c955bce8a4e2d2ad2fe1b919acf0155c.tar.xz
main/gpsd version bump to 3.17
Diffstat (limited to 'main/gpsd/gpsd-use-local-timepps-header.patch')
-rw-r--r--main/gpsd/gpsd-use-local-timepps-header.patch14
1 files changed, 10 insertions, 4 deletions
diff --git a/main/gpsd/gpsd-use-local-timepps-header.patch b/main/gpsd/gpsd-use-local-timepps-header.patch
index 4724e43ed5..ea27de7a3e 100644
--- a/main/gpsd/gpsd-use-local-timepps-header.patch
+++ b/main/gpsd/gpsd-use-local-timepps-header.patch
@@ -1,13 +1,19 @@
diff --git a/ppsthread.c b/ppsthread.c
-index 5fae444..d09957b 100644
+index 6819c6f..45002cb 100644
--- a/ppsthread.c
+++ b/ppsthread.c
-@@ -72,7 +72,7 @@
+@@ -75,12 +75,11 @@
+ */
+ #define FAKE_PPS_NAME "ktimer"
+
+-#if defined(HAVE_SYS_TIMEPPS_H)
++// We supply our own timepps.h for Linux
+ // include unistd.h here as it is missing on older pps-tools releases.
// 'close' is not defined otherwise.
#include <unistd.h>
- #include <sys/time.h>
-#include <sys/timepps.h>
+-#endif
+#include "sys/timepps.h"
- #endif
#include "timespec.h"
+ #include "ppsthread.h"