aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/fuse.c4
1 files changed, 4 insertions, 0 deletions
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;