X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=src%2Fappliance.c;h=99bb21f7f08e7739d34e2658d2f6fcfde092c7f7;hp=ef724be5b4aeb8d0aef1aeeb634fca925be6d835;hb=003fbdfe5d8b237f42f575199b742c8dde9b8a11;hpb=15ba6ae17d5272d3d906f4053ed424447dc910bd diff --git a/src/appliance.c b/src/appliance.c index ef724be..99bb21f 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;