mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-23 10:41:50 +08:00
[Kernel] Fix the signal compiling issue when using minilibc
This commit is contained in:
@@ -63,13 +63,14 @@ typedef struct siginfo siginfo_t;
|
||||
#define SI_MESGQ 0x05 /* Signal generated by arrival of a
|
||||
message on an empty message queue. */
|
||||
|
||||
#ifdef RT_USING_NEWLIB
|
||||
#include <sys/signal.h>
|
||||
#if !defined(RT_USING_NEWLIB)
|
||||
typedef void (*_sig_func_ptr)(int);
|
||||
typedef unsigned long sigset_t;
|
||||
#endif
|
||||
|
||||
#if defined(__CC_ARM) || defined(__CLANG_ARM)
|
||||
#include <signal.h>
|
||||
typedef unsigned long sigset_t;
|
||||
|
||||
#if defined(__CC_ARM) || defined(__CLANG_ARM)
|
||||
|
||||
#define SIGHUP 1
|
||||
/* #define SIGINT 2 */
|
||||
@@ -105,8 +106,6 @@ typedef unsigned long sigset_t;
|
||||
#define SIG_BLOCK 1 /* set of signals to block */
|
||||
#define SIG_UNBLOCK 2 /* set of signals to, well, unblock */
|
||||
|
||||
typedef void (*_sig_func_ptr)(int);
|
||||
|
||||
struct sigaction
|
||||
{
|
||||
_sig_func_ptr sa_handler;
|
||||
@@ -124,8 +123,6 @@ int sigprocmask (int how, const sigset_t *set, sigset_t *oset);
|
||||
int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact);
|
||||
|
||||
#elif defined(__IAR_SYSTEMS_ICC__)
|
||||
#include <signal.h>
|
||||
typedef unsigned long sigset_t;
|
||||
|
||||
#define SIGHUP 1
|
||||
#define SIGINT 2
|
||||
@@ -161,8 +158,6 @@ typedef unsigned long sigset_t;
|
||||
#define SIG_BLOCK 1 /* set of signals to block */
|
||||
#define SIG_UNBLOCK 2 /* set of signals to, well, unblock */
|
||||
|
||||
typedef void (*_sig_func_ptr)(int);
|
||||
|
||||
struct sigaction
|
||||
{
|
||||
_sig_func_ptr sa_handler;
|
||||
|
Reference in New Issue
Block a user