From 9167d70e77c2f4c8e6de64fbf06bd3bee23542d2 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 3 Mar 2011 16:26:48 +0100 Subject: libreplace: move "struct timespec" checks into libreplace (where timespec is already used). Bjoern, Metze, please check. Guenther --- lib/replace/system/time.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/replace/system') diff --git a/lib/replace/system/time.h b/lib/replace/system/time.h index 5fce4dbc45..b6d2609289 100644 --- a/lib/replace/system/time.h +++ b/lib/replace/system/time.h @@ -46,6 +46,13 @@ struct utimbuf { }; #endif +#ifndef HAVE_STRUCT_TIMESPEC +struct timespec { + time_t tv_sec; /* Seconds. */ + long tv_nsec; /* Nanoseconds. */ +}; +#endif + #ifndef HAVE_MKTIME /* define is in "replace.h" */ time_t rep_mktime(struct tm *t); -- cgit