galeb

Једноставна статичка дистрибуција заснована на musl-у
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

0033-gcc-go-Fix-st_-a-m-c-tim-fields-in-generated-sysinfo.patch (875B)


      1 From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
      2 From: Olsken (updated patches)
      3 Date: Sat, 21 Aug 2021 08:51:52 +0000
      4 Subject: [PATCH] gcc-go: Fix st_{a,m,c}tim fields in generated sysinfo.go
      5 
      6 There are more than one st_{a,m,c}tim fields in struct stat on time64 machines.
      7 
      8 Run the Go-isation on all of them.
      9 
     10 Taken from Adélie Linux.
     11 
     12 diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
     13 index 0c52ea5d7..6fef104cc 100755
     14 --- a/libgo/mksysinfo.sh
     15 +++ b/libgo/mksysinfo.sh
     16 @@ -510,7 +510,7 @@ fi
     17  
     18  # For historical reasons Go uses the suffix "timespec" instead of "tim" for
     19  # stat_t's time fields on NetBSD.
     20 -st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
     21 +st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
     22  if test "${GOOS}" = "netbsd"; then
     23      st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
     24  fi