From 3df1037a74181ef314e2115ade836546a572ee48 Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Thu, 19 Aug 2010 19:07:04 +0200 Subject: libreplace: add clock_gettime replacement function for systems that don't have it --- lib/replace/system/time.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/replace/system') 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 -- cgit