From: Bernd Kuhls <bernd@kuhls.net>
To: buildroot@buildroot.org
Cc: "André Zwing" <nerv@dawncrow.de>,
"Jérôme Pouiller" <jezz@sysmic.org>,
"Pieter De Gendt" <pieter.degendt@gmail.com>,
"Petr Vorel" <petr.vorel@gmail.com>,
"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
"Adrian Perez de Castro" <aperez@igalia.com>,
"Giulio Benetti" <giulio.benetti@benettiengineering.com>,
"Romain Naour" <romain.naour@gmail.com>
Subject: [Buildroot] [PATCH/next 07/14] package/waffle: fix build with glibc 2.43
Date: Tue, 3 Mar 2026 21:00:46 +0100 [thread overview]
Message-ID: <20260303200054.784253-8-bernd@kuhls.net> (raw)
In-Reply-To: <20260303200054.784253-1-bernd@kuhls.net>
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
.../0001-c11-threads-fix-build-on-c23.patch | 57 +++++++++++++++++++
1 file changed, 57 insertions(+)
create mode 100644 package/waffle/0001-c11-threads-fix-build-on-c23.patch
diff --git a/package/waffle/0001-c11-threads-fix-build-on-c23.patch b/package/waffle/0001-c11-threads-fix-build-on-c23.patch
new file mode 100644
index 0000000000..0bed2a6548
--- /dev/null
+++ b/package/waffle/0001-c11-threads-fix-build-on-c23.patch
@@ -0,0 +1,57 @@
+From 6b3c46483844faba4dfe7dd90dc2b0cd06e67158 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Mon, 10 Nov 2025 19:20:22 -0800
+Subject: [PATCH] c11/threads: fix build on c23
+
+C23/glibc is now including once_init in stdlib.h
+
+https://patchwork.sourceware.org/project/glibc/patch/78061085-f04a-0c45-107b-5a8a15521083@redhat.com/#213088
+
+Conditionally check if glibc already provided c23 definition via stdlib.h
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+Upstream: https://gitlab.freedesktop.org/mesa/waffle/-/merge_requests/158
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ third_party/threads/threads.h | 3 ++-
+ third_party/threads/threads_posix.c | 3 ++-
+ 2 files changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/third_party/threads/threads.h b/third_party/threads/threads.h
+index b4db50c..cdc7bea 100644
+--- a/third_party/threads/threads.h
++++ b/third_party/threads/threads.h
+@@ -102,8 +102,9 @@ typedef pthread_cond_t cnd_t;
+ typedef pthread_t thrd_t;
+ typedef pthread_key_t tss_t;
+ typedef pthread_mutex_t mtx_t;
++#ifndef __once_flag_defined
+ typedef pthread_once_t once_flag;
+-
++#endif
+ #else
+ #error Not supported on this platform.
+ #endif
+diff --git a/third_party/threads/threads_posix.c b/third_party/threads/threads_posix.c
+index bc50825..d93013b 100644
+--- a/third_party/threads/threads_posix.c
++++ b/third_party/threads/threads_posix.c
+@@ -75,11 +75,12 @@ static void *impl_thrd_routine(void *p)
+
+ /*--------------- 7.25.2 Initialization functions ---------------*/
+ // 7.25.2.1
++#ifndef __once_flag_defined
+ void call_once(once_flag *flag, void (*func)(void))
+ {
+ pthread_once(flag, func);
+ }
+-
++#endif
+
+ /*------------- 7.25.3 Condition variable functions -------------*/
+ // 7.25.3.1
+--
+GitLab
+
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2026-03-03 20:02 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-03 20:00 [Buildroot] [PATCH/next 00/14] package/{glibc, localedef}: bump version to 2.43 Bernd Kuhls
2026-03-03 20:00 ` [Buildroot] [PATCH/next 01/14] package/socat: bump version to 1.8.1.1 Bernd Kuhls
2026-03-04 5:47 ` Baruch Siach via buildroot
2026-03-03 20:00 ` [Buildroot] [PATCH/next 02/14] package/lxc: bump version to 6.0.6 Bernd Kuhls
2026-03-03 20:00 ` [Buildroot] [PATCH/next 03/14] package/foot: bump version to 1.26.0 Bernd Kuhls
2026-03-03 20:00 ` [Buildroot] [PATCH/next 04/14] package/libkrb5: fix build with glibc 2.43 Bernd Kuhls
2026-03-03 20:00 ` [Buildroot] [PATCH/next 05/14] package/wlroots: " Bernd Kuhls
2026-03-03 20:00 ` [Buildroot] [PATCH/next 06/14] package/ntp: " Bernd Kuhls
2026-03-03 20:00 ` Bernd Kuhls [this message]
2026-03-03 20:00 ` [Buildroot] [PATCH/next 08/14] package/links: Fix " Bernd Kuhls
2026-03-03 20:00 ` [Buildroot] [PATCH/next 09/14] package/ltp-testsuite: fix " Bernd Kuhls
2026-03-03 20:00 ` [Buildroot] [PATCH/next 10/14] package/libvips: " Bernd Kuhls
2026-03-03 20:00 ` [Buildroot] [PATCH/next 11/14] package/freeswitch: disable mod_enum to " Bernd Kuhls
2026-03-03 20:00 ` [Buildroot] [PATCH/next 12/14] DEVELOPERS: remove Bernd Kuhls from libldns Bernd Kuhls
2026-03-03 20:00 ` [Buildroot] [PATCH/next 13/14] package/gcc/15.2.0: fix build with glibc 2.43 Bernd Kuhls
2026-03-03 20:00 ` [Buildroot] [PATCH/next 14/14] package/{glibc, localedef}: bump version to 2.43 Bernd Kuhls
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260303200054.784253-8-bernd@kuhls.net \
--to=bernd@kuhls.net \
--cc=aperez@igalia.com \
--cc=buildroot@buildroot.org \
--cc=giulio.benetti@benettiengineering.com \
--cc=jezz@sysmic.org \
--cc=nerv@dawncrow.de \
--cc=petr.vorel@gmail.com \
--cc=pieter.degendt@gmail.com \
--cc=romain.naour@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.