Skip to content

Commit 3401400

Browse files
authored
Merge pull request #279 from admlck/perl-l4re-fix
perl: Fix build for L4Re
2 parents ee0ce4d + 95af12e commit 3401400

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
From eaabd91ea030d52932d2d53d3da17cd0bc03a118 Mon Sep 17 00:00:00 2001
2+
From: Adam Lackorzynski <adam@l4re.org>
3+
Date: Fri, 31 Oct 2025 11:51:39 +0100
4+
Subject: [PATCH] configure_sigs.sh: Use less ambiguous identifier
5+
6+
'number' might be used in the included header file(s) which then defeats
7+
the grep for the number. Thus use the less ambiguous identifier to avoid
8+
those type of clashes.
9+
10+
Signed-off-by: Adam Lackorzynski <adam@l4re.org>
11+
---
12+
cnf/configure_sigs.sh | 6 +++---
13+
1 file changed, 3 insertions(+), 3 deletions(-)
14+
15+
diff --git a/cnf/configure_sigs.sh b/cnf/configure_sigs.sh
16+
index d0d1b46..7c07846 100644
17+
--- a/cnf/configure_sigs.sh
18+
+++ b/cnf/configure_sigs.sh
19+
@@ -18,15 +18,15 @@ for sig in HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1\
20+
21+
# OH SHI--
22+
try_add "#if SIG$sig == 0"
23+
- try_add "number 0"
24+
+ try_add "perl_cross_configure_sig_number 0"
25+
for num in `seq 1 100`; do
26+
try_add "#elif SIG$sig == $num"
27+
- try_add "number $num"
28+
+ try_add "perl_cross_configure_sig_number $num"
29+
done
30+
try_add "#endif"
31+
32+
if try_preproc; then
33+
- num=`grep 'number ' try.out | sed -e 's/[^0-9]//g'`
34+
+ num=`grep 'perl_cross_configure_sig_number ' try.out | sed -e 's/[^0-9]//g'`
35+
if [ -n "$num" -a "$num" != 0 ]; then
36+
msg " got SIG$sig = $num" >&2
37+
signals="$signals $sig"
38+
--
39+
2.51.0
40+

0 commit comments

Comments
 (0)