From cb1403d842a2fdbe6109eaf48acb7a494f30784d Mon Sep 17 00:00:00 2001 From: Fred Wright Date: Sun, 22 Jan 2017 00:11:34 -0800 Subject: Initial creation of os_compat.h. This creates a header for os_compat.c, and moves the related prototypes into it from gpsd_config.h (as created by SConstruct), after adding references to it to gpsd.h (via gpsd.h-tail) and a few other sources that need it but don't include gpsd.h. It also removes includes of in the places where they were only needed for the code now removed from gpsd_config.h. TESTED: Ran "scons build-all check" on OSX 10.9 (with strlcat/strlcpy but no clock_gettime), OSX 10.12 (with strlcat/strlcpy and clock_gettime), and Ubuntu 14 (with clock_gettime but no strlcat/strlcpy). Also verified that fallback versions were not being included where unnecessary. --- gpsdclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gpsdclient.c') diff --git a/gpsdclient.c b/gpsdclient.c index 70093b4a..b1b679be 100644 --- a/gpsdclient.c +++ b/gpsdclient.c @@ -8,13 +8,13 @@ #include #include #include /* for strcasecmp() */ -#include /* for time_t */ #include #include #include "gpsd_config.h" #include "gps.h" #include "gpsdclient.h" +#include "os_compat.h" static struct exportmethod_t exportmethods[] = { #if defined(DBUS_EXPORT_ENABLE) -- cgit v1.2.1