mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
* ar.c: (extract_file): Change "#if POSIX_UTIME" to
"#ifdef POSIX_UTIME" to match other tests of POSIX_UTIME and avoid lossage when POSIX_UTIME is not defined at all.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
Sat Jul 1 12:25:15 1995 Fred Fish <fnf@cygnus.com>
|
||||||
|
|
||||||
|
* ar.c: (extract_file): Change "#if POSIX_UTIME" to
|
||||||
|
"#ifdef POSIX_UTIME" to match other tests of POSIX_UTIME
|
||||||
|
and avoid lossage when POSIX_UTIME is not defined at all.
|
||||||
|
|
||||||
Wed Jun 28 17:51:24 1995 Steve Chamberlain <sac@slash.cygnus.com>
|
Wed Jun 28 17:51:24 1995 Steve Chamberlain <sac@slash.cygnus.com>
|
||||||
|
|
||||||
* ar.c: (print_contents.c, extract_file, do_quick_append):
|
* ar.c: (print_contents.c, extract_file, do_quick_append):
|
||||||
|
@ -727,7 +727,7 @@ extract_file (abfd)
|
|||||||
|
|
||||||
if (preserve_dates)
|
if (preserve_dates)
|
||||||
{
|
{
|
||||||
#if POSIX_UTIME
|
#ifdef POSIX_UTIME
|
||||||
struct utimbuf tb;
|
struct utimbuf tb;
|
||||||
tb.actime = buf.st_mtime;
|
tb.actime = buf.st_mtime;
|
||||||
tb.modtime = buf.st_mtime;
|
tb.modtime = buf.st_mtime;
|
||||||
|
Reference in New Issue
Block a user