authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-05-28 15:53:48+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-29 05:44:38+02:00
logbb1f225bc8db6fe565f7e39714ef3565cf1b6e0a
tree96749e642e39f7e33bb645f8cc611c4815e452e0
parent1a2c47a504c7f549328689201305514831de7513

libc: backport glibc header fix to avoid __unused

https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=243bdfec8f7cd4a85a8ce6e4e9a5a5accd3ce1aa;hp=ad9784419e274cef9ba7152d7cd2490d291f837b

4 files changed, 8 insertions(+), 8 deletions(-)

lib/libc/include/powerpc-linux-gnu/bits/struct_mutex.h+2-2
...@@ -32,7 +32,7 @@ struct __pthread_mutex_s...@@ -32,7 +32,7 @@ struct __pthread_mutex_s
32 int __kind;32 int __kind;
33#if __WORDSIZE == 6433#if __WORDSIZE == 64
34 short __spins;34 short __spins;
35 short __unused;35 short __glibc_reserved;
36 __pthread_list_t __list;36 __pthread_list_t __list;
37# define __PTHREAD_MUTEX_HAVE_PREV 137# define __PTHREAD_MUTEX_HAVE_PREV 1
38#else38#else
...@@ -59,4 +59,4 @@ struct __pthread_mutex_s...@@ -59,4 +59,4 @@ struct __pthread_mutex_s
59 0, 0, 0, __kind, 0, { { 0, 0 } }59 0, 0, 0, __kind, 0, { { 0, 0 } }
60#endif60#endif
6161
62#endif
\ No newline at end of file
62#endif
lib/libc/include/s390x-linux-gnu/bits/fenv.h+2-2
...@@ -76,7 +76,7 @@ typedef unsigned int fexcept_t; /* size of fpc */...@@ -76,7 +76,7 @@ typedef unsigned int fexcept_t; /* size of fpc */
76typedef struct76typedef struct
77{77{
78 fexcept_t __fpc;78 fexcept_t __fpc;
79 void *__unused;79 void *__glibc_reserved;
80 /* The field __unused (formerly __ieee_instruction_pointer) is a relict from80 /* The field __unused (formerly __ieee_instruction_pointer) is a relict from
81 commit "Remove PTRACE_PEEKUSER" (87b9b50f0d4b92248905e95a06a13c513dc45e59)81 commit "Remove PTRACE_PEEKUSER" (87b9b50f0d4b92248905e95a06a13c513dc45e59)
82 and isn't used anymore. */82 and isn't used anymore. */
...@@ -96,4 +96,4 @@ typedef unsigned int femode_t;...@@ -96,4 +96,4 @@ typedef unsigned int femode_t;
9696
97/* Default floating-point control modes. */97/* Default floating-point control modes. */
98# define FE_DFL_MODE ((const femode_t *) -1L)98# define FE_DFL_MODE ((const femode_t *) -1L)
99#endif
\ No newline at end of file
99#endif
lib/libc/include/s390x-linux-gnu/bits/struct_mutex.h+2-2
...@@ -32,7 +32,7 @@ struct __pthread_mutex_s...@@ -32,7 +32,7 @@ struct __pthread_mutex_s
32 int __kind;32 int __kind;
33#if __WORDSIZE == 6433#if __WORDSIZE == 64
34 short __spins;34 short __spins;
35 short __unused;35 short __glibc_reserved;
36 __pthread_list_t __list;36 __pthread_list_t __list;
37# define __PTHREAD_MUTEX_HAVE_PREV 137# define __PTHREAD_MUTEX_HAVE_PREV 1
38#else38#else
...@@ -59,4 +59,4 @@ struct __pthread_mutex_s...@@ -59,4 +59,4 @@ struct __pthread_mutex_s
59 0, 0, 0, __kind, 0, { { 0, 0 } }59 0, 0, 0, __kind, 0, { { 0, 0 } }
60#endif60#endif
6161
62#endif
\ No newline at end of file
62#endif
lib/libc/include/x86-linux-gnu/bits/struct_mutex.h+2-2
...@@ -32,7 +32,7 @@ struct __pthread_mutex_s...@@ -32,7 +32,7 @@ struct __pthread_mutex_s
32 int __kind;32 int __kind;
33#ifdef __x86_64__33#ifdef __x86_64__
34 short __spins;34 short __spins;
35 short __unused;35 short __glibc_reserved;
36 __pthread_list_t __list;36 __pthread_list_t __list;
37# define __PTHREAD_MUTEX_HAVE_PREV 137# define __PTHREAD_MUTEX_HAVE_PREV 1
38#else38#else
...@@ -59,4 +59,4 @@ struct __pthread_mutex_s...@@ -59,4 +59,4 @@ struct __pthread_mutex_s
59 0, 0, 0, __kind, 0, { { 0, 0 } }59 0, 0, 0, __kind, 0, { { 0, 0 } }
60#endif60#endif
6161
62#endif
\ No newline at end of file
62#endif