From patchwork Wed Jul 17 14:37:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Waldemar Brodkorb X-Patchwork-Id: 1961664 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=openadk.org header.i=@openadk.org header.a=rsa-sha256 header.s=2022 header.b=sV8egSlX; dkim=fail reason="signature verification failed" (2048-bit key) header.d=openadk.org header.i=@openadk.org header.a=rsa-sha256 header.s=2022 header.b=aVc+Emx8; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=uclibc-ng.org (client-ip=2a00:1828:2000:679::23; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=patchwork.ozlabs.org) Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WPJTJ3SGSz1xqc for ; Thu, 18 Jul 2024 00:38:25 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id B91183521186; Wed, 17 Jul 2024 16:38:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openadk.org; s=2022; t=1721227090; bh=Z9OgtAe7+ignZ7I7PBatoE04WJk4uDPTDxHdDKkYILs=; h=Date:From:To:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=sV8egSlX6eR0WpM+cG3Xn3tfM5+5oRvXiKZL0OF/8+FQCYh6G+t6MLP1WSbBxLS+a 1nPvvdBEobbIyWYW6E39XI4ecBpzGI165wkElSLztv2J7vnIdwKCpbL4bij220NV60 8uRsuHojb919W2D75Swq6OzebQ0+Ffc97Fumuqb6TocjWyjIdRCk22seEfYrnQEC+P zWp9Wd/+VGZOlVi+ti3XaxyqAgcSyClyQIIBhmsh23Kqfh6/FRnHK96LIXvW3E67eD hV3KLJtbjclksIyOQ5JBiZxW2aUdjezsgRQMaRlqmoxthpc/B6wlL7x6zwFoFKtNMN PiA8lVRiNnThw== Received: by helium.openadk.org (Postfix, from userid 1000) id 6EC913521184; Wed, 17 Jul 2024 16:37:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openadk.org; s=2022; t=1721227045; bh=2CJrNa4ZA0Hpp1mzjgrF60RX0Q5UsdL3wbKoTMkyvJs=; h=Date:From:To:Subject:From; b=aVc+Emx8Y90kac+wH6m1gu1W8xLAEM+zCiRWSOOmBprxohSGi/2nUxnb/tqWHc4qd xoqizXQRNe0LPwKm1SOHFBdzhlpxFDqWpPbVI1aaM/CcDuF+hkRPvhpl03G6sebuep HGI4ic2h51rHiygiLZcczneSCTSVj02kIPLWvxFMXh/PiHX7/Ya8M92wdIRwgW6PHV SHz4ok1As+Lcmd49d5/FBt/NvUqeSp0/k+A0GwFu4OK/kRxL0IfwS/VWDvd5CVwwhq YO3HhT4t6r19t7N5A9KSTqhRp71A9uZaXhml0AmkMohszg2Shn5fb0RxhM5GVLVIok JSX4gkm6pf5Pg== Date: Wed, 17 Jul 2024 16:37:25 +0200 From: Waldemar Brodkorb To: devel@uclibc-ng.org Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Operating-System: Linux 5.10.0-31-amd64 x86_64 Message-ID-Hash: MZCPGG56TL7SVOZY2L3AGHLREJ76BYZE X-Message-ID-Hash: MZCPGG56TL7SVOZY2L3AGHLREJ76BYZE X-MailFrom: wbx@openadk.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list Subject: [uclibc-ng-devel] [PATCH] allow to use List-Id: uClibc-ng Development Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: For architectures without ucontext implementation it is possible to use libucontext with this small adaptation. Signed-off-by: Waldemar Brodkorb --- 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 -#ifdef __UCLIBC_HAS_CONTEXT_FUNCS__ - /* Get machine dependent definition of data structures. */ #include +#ifdef __UCLIBC_HAS_CONTEXT_FUNCS__ + __BEGIN_DECLS /* Get user context and store it in variable pointed to by UCP. */