-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
1 changed file
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters