diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/fuse.c | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2006-05-03 Miklos Szeredi <miklos@szeredi.hu> + + * lib: fix compilation if CLOCK_MONOTONIC is not defined. + Reported by Christian Magnusson + 2006-04-23 Csaba Henk <csaba.henk@creo.hu> * lib: make FreeBSD mount routine recognize if kernel features @@ -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; |