#include <grp.h>
#endif
+#if defined (_POSIX_VERSION)
+#include <utime.h>
+#else
+struct utimbuf
+{
+ long actime;
+ long modtime;
+};
+#endif
+
#if defined(_POSIX_VERSION) || defined(DIRENT)
#include <dirent.h>
#ifdef direct
char save_linkflag;
extern time_t new_time;
int critical_error = 0;
- time_t restore_times[2];
+ struct utimbuf restore_times;
/* int sparse_ind = 0;*/
return;
}
- restore_times[0] = hstat.st_atime;
- restore_times[1] = hstat.st_mtime;
+ restore_times.actime = hstat.st_atime;
+ restore_times.modtime = hstat.st_mtime;
#ifdef S_ISHIDDEN
if (S_ISHIDDEN (hstat.st_mode)) {
msg_perror ("cannot remove %s", p);
}
if (f_atime_preserve)
- utime (p, restore_times);
+ utime (p, &restore_times);
return;
/*
if(f>=0)
(void)close(f);
if (f_atime_preserve)
- utime (p, restore_times);
+ utime (p, &restore_times);
return;
}
if(f_multivol)
save_name = 0;
if (f_atime_preserve)
- utime (p, restore_times);
+ utime (p, &restore_times);
return;
}
closedir(dirp);
free(namebuf);
if (f_atime_preserve)
- utime (p, restore_times);
+ utime (p, &restore_times);
return;
}