From 1316d0bbf4faae12ab091731dacec891141da2f7 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 7 Dec 2020 19:19:23 -0500 Subject: [PATCH] alpha: Remove anonymous union in struct stat This is clever, but it confuses downstream detection in glib and zstd. --- .../unix/sysv/linux/alpha/bits/struct_stat.h | 23 ++++--------------- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/sysdeps/unix/sysv/linux/alpha/bits/struct_stat.h b/sysdeps/unix/sysv/linux/alpha/bits/struct_stat.h index 1c9b4248b8..dddc5fb5a0 100644 --- a/sysdeps/unix/sysv/linux/alpha/bits/struct_stat.h +++ b/sysdeps/unix/sysv/linux/alpha/bits/struct_stat.h @@ -27,26 +27,13 @@ 'struct timespec'. This is the type used whenever possible but the Unix namespace rules do not allow the identifier 'timespec' to appear in the header. Therefore we have to handle the use of - this header in strictly standard-compliant sources special. - - Use neat tidy anonymous unions and structures when possible. */ + this header in strictly standard-compliant sources special. */ #ifdef __USE_XOPEN2K8 -# if __GNUC_PREREQ(3,3) -# define __ST_TIME(X) \ - __extension__ union { \ - struct timespec st_##X##tim; \ - struct { \ - __time_t st_##X##time; \ - unsigned long st_##X##timensec; \ - }; \ - } -# else -# define __ST_TIME(X) struct timespec st_##X##tim -# define st_atime st_atim.tv_sec -# define st_mtime st_mtim.tv_sec -# define st_ctime st_ctim.tv_sec -# endif +# define __ST_TIME(X) struct timespec st_##X##tim +# define st_atime st_atim.tv_sec +# define st_mtime st_mtim.tv_sec +# define st_ctime st_ctim.tv_sec #else # define __ST_TIME(X) \ __time_t st_##X##time; \ -- 2.26.2