Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 677203 Details for
Bug 759001
sys-libs/glibc: alpha's bits/stat.h header causes problems
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
0001-alpha-Remove-anonymous-union-in-struct-stat.patch
0001-alpha-Remove-anonymous-union-in-struct-stat.patch (text/plain), 1.72 KB, created by
Matt Turner
on 2020-12-08 01:56:23 UTC
(
hide
)
Description:
0001-alpha-Remove-anonymous-union-in-struct-stat.patch
Filename:
MIME Type:
Creator:
Matt Turner
Created:
2020-12-08 01:56:23 UTC
Size:
1.72 KB
patch
obsolete
>From 1316d0bbf4faae12ab091731dacec891141da2f7 Mon Sep 17 00:00:00 2001 >From: Matt Turner <mattst88@gmail.com> >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 <sys/stat.h> 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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 759001
:
677200
| 677203