diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2006-05-03 14:54:59 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2006-05-03 14:54:59 +0000 |
commit | 2512aaa8f035e96c158e3f07a8d0ff70a398fe08 (patch) | |
tree | 56a9e8cc498d8042e0be739e045612d77de6b779 | |
parent | 2efe48fc775fbc66e63694e365078f22092251a8 (diff) | |
download | libfuse-2512aaa8f035e96c158e3f07a8d0ff70a398fe08.tar.gz |
fix
-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; |