From bb1f225bc8db6fe565f7e39714ef3565cf1b6e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Thu, 28 May 2026 15:53:48 +0200 Subject: [PATCH] libc: backport glibc header fix to avoid __unused https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=243bdfec8f7cd4a85a8ce6e4e9a5a5accd3ce1aa;hp=ad9784419e274cef9ba7152d7cd2490d291f837b --- lib/libc/include/powerpc-linux-gnu/bits/struct_mutex.h | 4 ++-- lib/libc/include/s390x-linux-gnu/bits/fenv.h | 4 ++-- lib/libc/include/s390x-linux-gnu/bits/struct_mutex.h | 4 ++-- lib/libc/include/x86-linux-gnu/bits/struct_mutex.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/libc/include/powerpc-linux-gnu/bits/struct_mutex.h b/lib/libc/include/powerpc-linux-gnu/bits/struct_mutex.h index 00a85da7667b8540cc89ad17d4c4f51648687920..ebf2d50922ee0114298519286785f965771985d9 100644 --- a/lib/libc/include/powerpc-linux-gnu/bits/struct_mutex.h +++ b/lib/libc/include/powerpc-linux-gnu/bits/struct_mutex.h @@ -32,7 +32,7 @@ struct __pthread_mutex_s int __kind; #if __WORDSIZE == 64 short __spins; - short __unused; + short __glibc_reserved; __pthread_list_t __list; # define __PTHREAD_MUTEX_HAVE_PREV 1 #else @@ -59,4 +59,4 @@ struct __pthread_mutex_s 0, 0, 0, __kind, 0, { { 0, 0 } } #endif -#endif \ No newline at end of file +#endif diff --git a/lib/libc/include/s390x-linux-gnu/bits/fenv.h b/lib/libc/include/s390x-linux-gnu/bits/fenv.h index eafcaa425b6835d5dd985020e748f3aa64e0c4a5..6fb9372043231b6e4303457c2b102b56fc39e728 100644 --- a/lib/libc/include/s390x-linux-gnu/bits/fenv.h +++ b/lib/libc/include/s390x-linux-gnu/bits/fenv.h @@ -76,7 +76,7 @@ typedef unsigned int fexcept_t; /* size of fpc */ typedef struct { fexcept_t __fpc; - void *__unused; + void *__glibc_reserved; /* The field __unused (formerly __ieee_instruction_pointer) is a relict from commit "Remove PTRACE_PEEKUSER" (87b9b50f0d4b92248905e95a06a13c513dc45e59) and isn't used anymore. */ @@ -96,4 +96,4 @@ typedef unsigned int femode_t; /* Default floating-point control modes. */ # define FE_DFL_MODE ((const femode_t *) -1L) -#endif \ No newline at end of file +#endif diff --git a/lib/libc/include/s390x-linux-gnu/bits/struct_mutex.h b/lib/libc/include/s390x-linux-gnu/bits/struct_mutex.h index 7fc73321151dba01025bdf6f61e525f4a82d8e70..571265267c2edbc388e00aed800c03b3d2c05b2d 100644 --- a/lib/libc/include/s390x-linux-gnu/bits/struct_mutex.h +++ b/lib/libc/include/s390x-linux-gnu/bits/struct_mutex.h @@ -32,7 +32,7 @@ struct __pthread_mutex_s int __kind; #if __WORDSIZE == 64 short __spins; - short __unused; + short __glibc_reserved; __pthread_list_t __list; # define __PTHREAD_MUTEX_HAVE_PREV 1 #else @@ -59,4 +59,4 @@ struct __pthread_mutex_s 0, 0, 0, __kind, 0, { { 0, 0 } } #endif -#endif \ No newline at end of file +#endif diff --git a/lib/libc/include/x86-linux-gnu/bits/struct_mutex.h b/lib/libc/include/x86-linux-gnu/bits/struct_mutex.h index aecbadb5fdbdc2ece477ae5d6c09e96dd5f39f52..13c9894ad4b3156677a2475ede4c0bc47d1df68a 100644 --- a/lib/libc/include/x86-linux-gnu/bits/struct_mutex.h +++ b/lib/libc/include/x86-linux-gnu/bits/struct_mutex.h @@ -32,7 +32,7 @@ struct __pthread_mutex_s int __kind; #ifdef __x86_64__ short __spins; - short __unused; + short __glibc_reserved; __pthread_list_t __list; # define __PTHREAD_MUTEX_HAVE_PREV 1 #else @@ -59,4 +59,4 @@ struct __pthread_mutex_s 0, 0, 0, __kind, 0, { { 0, 0 } } #endif -#endif \ No newline at end of file +#endif -- 2.54.0