Lines 49-54
Link Here
|
49 |
#include "arlib.h" |
49 |
#include "arlib.h" |
|
|
50 |
#ifdef HAVE_FUTIMES |
51 |
# define FUTIMES(fd, fname, tvp) futimes (fd, tvp) |
52 |
#else |
53 |
# define FUTIMES(fd, fname, tvp) utimes (fname, tvp) |
54 |
#endif |
50 |
/* Name and version of program. */ |
55 |
/* Name and version of program. */ |
51 |
static void print_version (FILE *stream, struct argp_state *state); |
56 |
static void print_version (FILE *stream, struct argp_state *state); |
Lines 693-699
do_oper_extract (int oper, const char *arfname, char **argv, int argc,
Link Here
|
693 |
tv[1].tv_sec = arhdr->ar_date; |
698 |
tv[1].tv_sec = arhdr->ar_date; |
694 |
tv[1].tv_usec = 0; |
699 |
tv[1].tv_usec = 0; |
695 |
if (unlikely (futimes (xfd, tv) != 0)) |
700 |
if (unlikely (FUTIMES (xfd, arhdr->ar_name, tv) != 0)) |
696 |
{ |
701 |
{ |
697 |
error (0, errno, |
702 |
error (0, errno, |
698 |
gettext ("cannot change modification time of %s"), |
703 |
gettext ("cannot change modification time of %s"), |