summaryrefslogtreecommitdiff
path: root/libgps_core.c
diff options
context:
space:
mode:
authorFred Wright <fw@fwright.net>2017-01-21 18:31:39 -0800
committerFred Wright <fw@fwright.net>2017-01-22 14:02:55 -0800
commit0fbb94143ec4a5baf569b09937b28d4339cc8a00 (patch)
tree02801d327eecfcba2126757f655c0eca82f20ce0 /libgps_core.c
parent390b32f32c166ff8e5a04390cca75247993be73c (diff)
downloadgpsd-0fbb94143ec4a5baf569b09937b28d4339cc8a00.tar.gz
Cleans up some ordering in os_compat.c.
This rearranges the order of some conditionals and includes, in order to avoid some gratuitous includes where unnecessary. Due to the fact that some actual definitions for the clock_gettime fallback are embedded directly in gpsd_config.h, it's necessary to include <time.h> prior to including it. This will be fixed once the relevant definitions are moved to the upcoming os_compat.h. This also replaces the "UNUSED" in clock_gettime with a void cast, eliminating the need for compiler.h. TESTED: Ran "scons build-all check" on OSX 10.9, OSX 10.12 (which has real clock_gettime) and Ubuntu 14. Also verified that the clock_gettime fallback is present in OSX 10.9, but absent in OSX 10.12 and in Ubuntu 14.
Diffstat (limited to 'libgps_core.c')
0 files changed, 0 insertions, 0 deletions