aboutsummaryrefslogtreecommitdiffstats
path: root/main/gpsd/gpsd-use-local-timepps-header.patch
blob: ea27de7a3e41fc7ed9d00618e5b3af6d27319c3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/ppsthread.c b/ppsthread.c
index 6819c6f..45002cb 100644
--- a/ppsthread.c
+++ b/ppsthread.c
@@ -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/timepps.h>
-#endif
+#include "sys/timepps.h"
 
 #include "timespec.h"
 #include "ppsthread.h"