File: Add-support-for-some-less-mainstream-architectures.patch

package info (click to toggle)
libcap2 1%3A2.75-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,068 kB
  • sloc: ansic: 9,181; sh: 1,138; makefile: 812; cpp: 45; asm: 16
file content (29 lines) | stat: -rw-r--r-- 1,031 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: "Andrew G. Morgan" <morgan@kernel.org>
Date: Sun, 23 Mar 2025 06:30:29 -0700
Subject: Add support for some less mainstream architectures.

These (__alpha__, __hppa__, __sh__) don't have the SA_RESTORER
complication, so hopefully can "just work". I'm relying on Debian's
build servers to confirm.

See: https://bugzilla.kernel.org/show_bug.cgi?id=219915

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
---
 psx/psx_calls.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/psx/psx_calls.c b/psx/psx_calls.c
index 99e1d51..2651f22 100644
--- a/psx/psx_calls.c
+++ b/psx/psx_calls.c
@@ -36,7 +36,8 @@
 #if defined(__x86_64__) || defined(__i386__)	   \
     || defined(__arm__) || defined(__aarch64__)	   \
     || defined(__mips__) || defined(__loongarch__) \
-    || defined(__powerpc__) || defined(__s390__) || defined(__riscv)
+    || defined(__powerpc__) || defined(__s390__) || defined(__riscv) \
+    || defined(__alpha__) || defined(__hppa__) || defined(__sh__)
 
 #undef _NSIG
 #undef _NSIG_BPW