fix
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 @@
 #endif
 }
 
+#ifndef CLOCK_MONOTONIC
+#define CLOCK_MONOTONIC CLOCK_REALTIME
+#endif
+
 static void curr_time(struct timespec *now)
 {
     static clockid_t clockid = CLOCK_MONOTONIC;