]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/procps-ng/0001-proc-sig-fix-build-for-sparc.patch
74f822aea3571479f40e42249f19dc18db458deb
[coffee/buildroot.git] / package / procps-ng / 0001-proc-sig-fix-build-for-sparc.patch
1 From 070feb7c5ebd0f2ca721ca5d75bdd3fd8cffe961 Mon Sep 17 00:00:00 2001
2 From: Baruch Siach <baruch@tkos.co.il>
3 Date: Fri, 27 Apr 2018 07:34:57 +0300
4 Subject: [PATCH] proc/sig: fix build for sparc
5
6 The code undefines SIGLOST which breaks references to SIGPWR.
7
8 Taken from a patch suggested in upstream bug report #93.
9
10 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
11 ---
12 Upstream status: https://gitlab.com/procps-ng/procps/issues/93
13 ---
14  proc/sig.c | 6 +-----
15  1 file changed, 1 insertion(+), 5 deletions(-)
16
17 diff --git a/proc/sig.c b/proc/sig.c
18 index b883185fc28a..6ca9512cc70c 100644
19 --- a/proc/sig.c
20 +++ b/proc/sig.c
21 @@ -52,10 +52,6 @@
22  #  undef SIGSTKFLT
23  #endif
24  
25 -#if !defined(__GNU__) && defined(SIGLOST)
26 -#  undef SIGLOST
27 -#endif
28 -
29  #ifndef SIGRTMIN
30  #  warning Standards require that <signal.h> define SIGRTMIN; assuming 32
31  #  define SIGRTMIN 32
32 @@ -87,7 +83,7 @@ static const mapstruct sigtable[] = {
33    {"ILL",    SIGILL},
34    {"INT",    SIGINT},
35    {"KILL",   SIGKILL},
36 -#ifdef SIGLOST
37 +#if defined(__GNU__)
38    {"LOST",   SIGLOST},  /* Hurd-specific */
39  #endif
40    {"PIPE",   SIGPIPE},
41 -- 
42 2.17.0
43