diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-03-02 00:16:51 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-03-02 00:16:51 -0500 |
commit | 0e120c4bdbfd309ec8a5bbd4005d82edd7700bd3 (patch) | |
tree | 9876c64c7ad5fde20e5b537cb2aebe7cdf0f460d /SConstruct | |
parent | 44b3532e07d2e3790a75ccd5a75f19deefa71e82 (diff) | |
download | gpsd-0e120c4bdbfd309ec8a5bbd4005d82edd7700bd3.tar.gz |
Complete port of clock_gettime(3) and teach gpsipe to use it.
This eliminates the last gettimeofday(3) from the code.
POSIX.1-2008 marked it obsolete.
All regression tests pass.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -755,6 +755,10 @@ pid_t getsid(pid_t pid); # ifdef __cplusplus extern "C" { typedef int clockid_t; +struct timespec { + time_t tv_sec; + long tv_nsec; +}; #define CLOCK_REALTIME 0 int clock_gettime(clockid_t, struct timespec *); # endif |