diff options
author | Björn Jacke <bj@sernet.de> | 2010-08-19 19:07:04 +0200 |
---|---|---|
committer | Björn Jacke <bj@sernet.de> | 2010-08-31 09:07:29 +0200 |
commit | 3df1037a74181ef314e2115ade836546a572ee48 (patch) | |
tree | 7b9044665431ab5e93d816413add4d52d1c45bfa /lib/replace/system | |
parent | 9f87bc4588c2ac669f6e808158dca7ec8517a461 (diff) | |
download | samba-3df1037a74181ef314e2115ade836546a572ee48.tar.gz samba-3df1037a74181ef314e2115ade836546a572ee48.tar.bz2 samba-3df1037a74181ef314e2115ade836546a572ee48.zip |
libreplace: add clock_gettime replacement function for systems that don't have it
Diffstat (limited to 'lib/replace/system')
-rw-r--r-- | lib/replace/system/time.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/replace/system/time.h b/lib/replace/system/time.h index 4abf295d1a..ff26531e45 100644 --- a/lib/replace/system/time.h +++ b/lib/replace/system/time.h @@ -66,4 +66,10 @@ int rep_utime(const char *filename, const struct utimbuf *buf); int rep_utimes(const char *filename, const struct timeval tv[2]); #endif +#ifndef HAVE_CLOCK_GETTIME +#define CLOCK_REALTIME 0 +typedef int clockid_t; +int rep_clock_gettime(clockid_t clk_id, struct timespec *tp); +#endif + #endif |