From b3e01168db71af12d231c2818cc1d4256d72a419 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Wed, 19 Aug 2020 23:53:13 +0800 Subject: [PATCH] sched/signal: Add sighandler_t typedef improve the compatibility for glibc Signed-off-by: Xiang Xiao Change-Id: I925e8cbea18848dfc75c97aa72a12b91810aa9e8 --- include/signal.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/signal.h b/include/signal.h index 5045c2a73b..5697bbbc7f 100644 --- a/include/signal.h +++ b/include/signal.h @@ -335,6 +335,10 @@ typedef CODE void (*_sa_handler_t)(int signo); typedef CODE void (*_sa_sigaction_t)(int signo, FAR siginfo_t *siginfo, FAR void *context); +/* glibc definition of signal handling function types */ + +typedef _sa_handler_t sighandler_t; + /* The following structure defines the action to take for given signal */ struct sigaction