summaryrefslogtreecommitdiffstats
path: root/src/appliance.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/appliance.c')
-rw-r--r--src/appliance.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/appliance.c b/src/appliance.c
index ef724be5..99bb21f7 100644
--- a/src/appliance.c
+++ b/src/appliance.c
@@ -351,7 +351,11 @@ check_for_cached_appliance (guestfs_h *g,
int fd = open (filename, O_RDONLY);
if (fd == -1)
return 0;
+#ifdef HAVE_FUTIMENS
(void) futimens (fd, NULL);
+#else
+ (void) futimes (fd, NULL);
+#endif
struct flock fl;
fl.l_type = F_RDLCK;
fl.l_whence = SEEK_SET;