diff options
Diffstat (limited to 'main/gpsd/gpsd-use-local-timepps-header.patch')
-rw-r--r-- | main/gpsd/gpsd-use-local-timepps-header.patch | 14 |
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" |