You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-vcs/rcs/files/rcs-5.10.0-glibc-2.34.patch

45 lines
1.2 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

https://git.savannah.gnu.org/cgit/rcs.git/commit/?h=p&id=10fb2a018f320ff3c1615baa5af491410d9f8d09
https://bugs.gentoo.org/806356
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Mon, 5 Apr 2021 10:13:49 -0700
Subject: =?UTF-8?q?Don=E2=80=99t=20use=20SIGSTKSZ=20in=20#if?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Problem reported by Christoph Karl in:
https://lists.gnu.org/r/bug-rcs/2021-04/msg00000.html
* b-isr.c (ISR_STACK_SIZE): Remove.
(isr_init): Dont assume SIGSTKSZ is a preprocessor constant.
--- a/src/b-isr.c
+++ b/src/b-isr.c
@@ -198,22 +198,17 @@ setup_catchsig (size_t count, int const set[VLA_ELEMS (count)])
#undef MUST
}
-#if defined HAVE_SIGALTSTACK && defined SIGSTKSZ
-#define ISR_STACK_SIZE (10 * SIGSTKSZ)
-#else
-#define ISR_STACK_SIZE 0
-#endif
-
struct isr_scratch *
isr_init (bool *be_quiet)
{
struct isr_scratch *scratch = ZLLOC (1, struct isr_scratch);
-#if ISR_STACK_SIZE
+#if defined HAVE_SIGALTSTACK && defined SIGSTKSZ
+ size_t stack_size = 10 * SIGSTKSZ;
stack_t ss =
{
- .ss_sp = alloc (PLEXUS, ISR_STACK_SIZE),
- .ss_size = ISR_STACK_SIZE,
+ .ss_sp = alloc (PLEXUS, stack_size),
+ .ss_size = stack_size,
.ss_flags = 0
};
cgit v1.2.1