diff options
author | Daniel Díaz <daniel.diaz@linaro.org> | 2019-02-21 10:42:13 -0600 |
---|---|---|
committer | Petr Vorel <pvorel@suse.cz> | 2019-02-26 00:49:16 +0100 |
commit | 6511fcf26dc251c0b4eb6ec7bb4325b6a1bbcd6b (patch) | |
tree | bd360c506c69f9c2112154aea1bf3e377c1d727d /include | |
parent | 938a1023d4c67fab968004cab0890a75535c5c45 (diff) |
Define __SIGRTMIN and __SIGRTMAX for MUSL
Some libc implementations might differ in the definitions they
include. Exempli gratia: MUSL does not define __SIGRTMAX nor
__SIGRTMIN.
These two tests fail to build because of the missing
definitions:
testcases/kernel/syscalls/ptrace/ptrace05.c
testcases/kernel/syscalls/sighold/sighold02.c
Out of precaution, these two also include this header:
lib/tst_sig.c
testcases/kernel/syscalls/rt_sigsuspend/rt_sigsuspend01.c
Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
Diffstat (limited to 'include')
-rw-r--r-- | include/lapi/signal.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/lapi/signal.h b/include/lapi/signal.h new file mode 100644 index 000000000..d22965a94 --- /dev/null +++ b/include/lapi/signal.h @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (c) 2019 Linaro Limited. All rights reserved. + * Author: Daniel Díaz <daniel.diaz@linaro.org> + */ + +#ifndef LAPI_SIGNAL_H +#define LAPI_SIGNAL_H + +#include <signal.h> + +/* + * Some libc implementations might differ in the definitions they include. This + * covers those differences for all tests to successfully build. + */ + +#ifndef __SIGRTMIN +# define __SIGRTMIN 32 +#endif +#ifndef __SIGRTMAX +# define __SIGRTMAX (_NSIG - 1) +#endif + +#endif |