summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-02 00:16:51 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-03-02 00:16:51 -0500
commit0e120c4bdbfd309ec8a5bbd4005d82edd7700bd3 (patch)
tree9876c64c7ad5fde20e5b537cb2aebe7cdf0f460d /SConstruct
parent44b3532e07d2e3790a75ccd5a75f19deefa71e82 (diff)
downloadgpsd-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--SConstruct4
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index e82857d5..be83f67f 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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