diff options
| author | Roy Marples <roy@marples.name> | 2008-07-31 23:43:37 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-07-31 23:43:37 +0000 |
| commit | 37a596da190297812137b740303a33d14633cacc (patch) | |
| tree | f82569cf2c053ec146cfdfe9d58b2a64812b792f /common.h | |
| parent | 6b63804804c9a13e453e2c7de9bfd81bf68c3295 (diff) | |
| download | dhcpcd-37a596da190297812137b740303a33d14633cacc.tar.xz | |
clock_monotonic now is 0 or 1 depending on if the clock is monotonic. Also, systems that have headers for monotonic but do not claim support now warn about this. You can build dhcpcd to force a monotonic clock.
Diffstat (limited to 'common.h')
| -rw-r--r-- | common.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -75,7 +75,8 @@ int close_fds(void); int set_cloexec(int); int set_nonblock(int); ssize_t get_line(char **, size_t *, FILE *); -int clock_monotonic(struct timeval *); +extern int clock_monotonic; +int get_monotonic(struct timeval *); time_t uptime(void); int writepid(int, pid_t); void *xrealloc(void *, size_t); |
