diff options
| author | Bernard Xiong <[email protected]> | 2019-12-18 23:06:36 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2019-12-18 23:06:36 +0800 |
| commit | b5e4aa58e0b943e02335ef253a7fbce4e9dda238 (patch) | |
| tree | 453fa191605a9345d029acaf5d1c64b3ab3a9d06 /components/libc | |
| parent | a87c2ef9703c1aaeb8020a328f0ed981418ec283 (diff) | |
[Kernel] Fix the signal compiling issue when using minilibc
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/compilers/minilibc/signal.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/components/libc/compilers/minilibc/signal.h b/components/libc/compilers/minilibc/signal.h new file mode 100644 index 0000000000..f52f1e1009 --- /dev/null +++ b/components/libc/compilers/minilibc/signal.h @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-12 Bernard The first version + */ + +#ifndef SIGNAL_H__ +#define SIGNAL_H__ + +#include <libc/libc_signal.h> + +#define SIG_DFL ((_sig_func_ptr)0) /* Default action */ +#define SIG_IGN ((_sig_func_ptr)1) /* Ignore action */ +#define SIG_ERR ((_sig_func_ptr)-1) /* Error return */ + +#endif |
