fix
authorMiklos Szeredi <miklos@szeredi.hu>
Wed, 3 May 2006 14:54:59 +0000 (14:54 +0000)
committerMiklos Szeredi <miklos@szeredi.hu>
Wed, 3 May 2006 14:54:59 +0000 (14:54 +0000)
ChangeLog
lib/fuse.c

index 7007037a09d8c1248b6258da5ad9c2e7ace4bb9d..1d34b577799ea51c28a5f1567195ab296a2f6a59 100644 (file)
--- 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
index 3178b1a8265224515d130a1d3d546e8866615e46..3a7371d873299d4f5700bc1adc52d99aee048c1d 100644 (file)
@@ -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;