mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-09 17:03:35 -09:00
package/uclibc: add patch for libucontext usage
*ucontext functions are only implemented for a subset of uClibc supported architectures. To allow the external library libucontext to be used this small patch is required. Tested for riscv64. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
faf2a1d2ab
commit
f761a8c451
35
package/uclibc/0001-allow-to-use-sys-ucontext.h.patch
Normal file
35
package/uclibc/0001-allow-to-use-sys-ucontext.h.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
From 903da45dde43836e35a295226c5b1efccd413c08 Mon Sep 17 00:00:00 2001
|
||||
From: Waldemar Brodkorb <wbx@openadk.org>
|
||||
Date: Wed, 17 Jul 2024 15:41:40 +0200
|
||||
Subject: [PATCH] allow to use <sys/ucontext.h>
|
||||
|
||||
For architectures without ucontext implementation it is possible
|
||||
to use libucontext with this small adaptation.
|
||||
|
||||
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
|
||||
Upstream: https://mailman.openadk.org/mailman3/hyperkitty/list/devel@uclibc-ng.org/thread/MZCPGG56TL7SVOZY2L3AGHLREJ76BYZE/
|
||||
---
|
||||
include/ucontext.h | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/include/ucontext.h b/include/ucontext.h
|
||||
index 4ce114ef1..76b4f375e 100644
|
||||
--- a/include/ucontext.h
|
||||
+++ b/include/ucontext.h
|
||||
@@ -23,11 +23,11 @@
|
||||
|
||||
#include <features.h>
|
||||
|
||||
-#ifdef __UCLIBC_HAS_CONTEXT_FUNCS__
|
||||
-
|
||||
/* Get machine dependent definition of data structures. */
|
||||
#include <sys/ucontext.h>
|
||||
|
||||
+#ifdef __UCLIBC_HAS_CONTEXT_FUNCS__
|
||||
+
|
||||
__BEGIN_DECLS
|
||||
|
||||
/* Get user context and store it in variable pointed to by UCP. */
|
||||
--
|
||||
2.30.2
|
||||
|
||||
Reference in New Issue
Block a user