From 2512aaa8f035e96c158e3f07a8d0ff70a398fe08 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Wed, 3 May 2006 14:54:59 +0000 Subject: [PATCH] fix --- ChangeLog | 5 +++++ lib/fuse.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7007037..1d34b57 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-05-03 Miklos Szeredi + + * lib: fix compilation if CLOCK_MONOTONIC is not defined. + Reported by Christian Magnusson + 2006-04-23 Csaba Henk * lib: make FreeBSD mount routine recognize if kernel features diff --git a/lib/fuse.c b/lib/fuse.c index 3178b1a..3a7371d 100644 --- a/lib/fuse.c +++ b/lib/fuse.c @@ -514,6 +514,10 @@ static void mtime_set(const struct stat *stbuf, struct timespec *ts) #endif } +#ifndef CLOCK_MONOTONIC +#define CLOCK_MONOTONIC CLOCK_REALTIME +#endif + static void curr_time(struct timespec *now) { static clockid_t clockid = CLOCK_MONOTONIC; -- 2.30.2