aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2006-05-03 14:54:59 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2006-05-03 14:54:59 +0000
commit2512aaa8f035e96c158e3f07a8d0ff70a398fe08 (patch)
tree56a9e8cc498d8042e0be739e045612d77de6b779
parent2efe48fc775fbc66e63694e365078f22092251a8 (diff)
downloadlibfuse-2512aaa8f035e96c158e3f07a8d0ff70a398fe08.tar.gz
fix
-rw-r--r--ChangeLog5
-rw-r--r--lib/fuse.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7007037..1d34b57 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
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;