--- a/SConstruct +++ b/SConstruct @@ -734,7 +734,7 @@ size_t strlcpy(/address@hidden@*/char *dst, /address@hidden } # endif #endif -#ifndef HAVE_CLOCK_GETTIME +#ifndef _POSIX_TIMERS # ifdef __cplusplus extern "C" { # endif --- a/gpsd.h-head +++ b/gpsd.h-head @@ -14,6 +14,7 @@ extern "C" { #include #include #include /* for time_t */ +#include /* for _POSIX_TIMERS */ #ifndef GPSD_CONFIG_H /* Feature configuration switches begin here */