diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2020-10-22 18:12:25 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2020-10-23 19:16:37 +0100 |
commit | c7c4a2787bae1a3eb239f5e69826727ff5c44373 (patch) | |
tree | f30b9d6664ffa43ac2bc92f162116ac6e3838e88 /gcc | |
parent | 0aa5a935b4cf9e106a04e582571db58f19173452 (diff) | |
download | gcc-c7c4a2787bae1a3eb239f5e69826727ff5c44373.zip gcc-c7c4a2787bae1a3eb239f5e69826727ff5c44373.tar.gz gcc-c7c4a2787bae1a3eb239f5e69826727ff5c44373.tar.bz2 |
Darwin, Ada : Fix bootstrap after stat entry changes.
Darwin struct stat has timeval entry fields for file access and
modification times but they are named differently from those
on Linux.
As a workaround define the field names to the Darwin equivalent.
gcc/ada/ChangeLog:
* adaint.c: On Darwin platforms, define st_atim to
st_atimespec. Likwise st_mtim to st_mtimespec.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/adaint.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index b7406a0..560f352 100644 --- a/gcc/ada/adaint.c +++ b/gcc/ada/adaint.c @@ -237,6 +237,11 @@ UINT __gnat_current_ccs_encoding; #include "adaint.h" +#if defined (__APPLE__) && defined (st_mtime) +#define st_atim st_atimespec +#define st_mtim st_mtimespec +#endif + /* Define symbols O_BINARY and O_TEXT as harmless zeroes if they are not defined in the current system. On DOS-like systems these flags control whether the file is opened/created in text-translation mode (CR/LF in |