summaryrefslogtreecommitdiffstats
path: root/contrib/qemu/util/oslib-posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/qemu/util/oslib-posix.c')
-rw-r--r--contrib/qemu/util/oslib-posix.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/qemu/util/oslib-posix.c b/contrib/qemu/util/oslib-posix.c
index bac4c1a158e..45f9ca5a156 100644
--- a/contrib/qemu/util/oslib-posix.c
+++ b/contrib/qemu/util/oslib-posix.c
@@ -191,6 +191,13 @@ int qemu_pipe(int pipefd[2])
return ret;
}
+#ifndef UTIME_OMIT
+#define UTIME_OMIT ((1l << 30) - 2l)
+#endif
+#ifndef UTIME_NOW
+#define UTIME_NOW ((1l << 30) - 1l)
+#endif
+
int qemu_utimens(const char *path, const struct timespec *times)
{
struct timeval tv[2], tv_now;