summaryrefslogtreecommitdiff
path: root/lib/replace/replace.h
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-08-19 19:07:04 +0200
committerBjörn Jacke <bj@sernet.de>2010-08-31 09:07:29 +0200
commit3df1037a74181ef314e2115ade836546a572ee48 (patch)
tree7b9044665431ab5e93d816413add4d52d1c45bfa /lib/replace/replace.h
parent9f87bc4588c2ac669f6e808158dca7ec8517a461 (diff)
downloadsamba-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/replace.h')
-rw-r--r--lib/replace/replace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index 4efcb4c6ee..055dd7172f 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -517,6 +517,10 @@ char *rep_get_current_dir_name(void);
int rep_strerror_r(int errnum, char *buf, size_t buflen);
#endif
+#if !defined(HAVE_CLOCK_GETTIME)
+#define clock_gettime rep_clock_gettime
+#endif
+
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif