gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-users] FreeBSD and sys/timepps.h


From: O'Connor, Daniel
Subject: [gpsd-users] FreeBSD and sys/timepps.h
Date: Tue, 6 Jan 2015 14:24:09 +1030

Hi,
I built gpsd (from the port) and found that it doesn’t build with PPS support. 
This happens because it checks for sys/timepps.h by compiling it without 
including sys/types.h beforehand.

Unfortunately (so far as I can see) there is no way to pass extra headers to 
scons when it does compile tests :(

Modulo fixing scons (something I’d rather not tackle..) I think it could be 
worked around by changing the sconsfile check for sys/timepps.h or 
os.uname()[0] == "FreeBSD".

The following patch DTRT for me:

--- SConstruct.orig     2013-05-01 15:14:21.000000000 +0930
+++ SConstruct  2015-01-06 14:20:31.594917587 +1030@@ -517,7 +509,7 @@
     env["bluez"] = False

 # ntpshm is required for pps support
-if env['pps'] and env['ntpshm'] and config.CheckHeader("sys/timepps.h"):
+if env['pps'] and env['ntpshm'] and (config.CheckHeader("sys/timepps.h") or 
os.uname()[0] == "FreeBSD"):
     confdefs.append("#define HAVE_SYS_TIMEPPS_H 1\n")
     announce("You have kernel PPS available.")
 else:

--
Daniel O'Connor
"The nice thing about standards is that there
are so many of them to choose from."
 -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C




reply via email to

[Prev in Thread] Current Thread [Next in Thread]