From 51e9cd32b27b2f841f4f176b42082daaeaaabf76 Mon Sep 17 00:00:00 2001 From: Andrew Grigorev Date: Thu, 18 Oct 2012 15:02:37 +0400 Subject: [PATCH] types: use siginfo_t from signal.h for rt_signalfn_t declaration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It should fit the sa_sigaction declaration, otherwise compiler complains about uncasted assignments. | restorer.c: In function тАШ__export_restore_taskтАЩ: | restorer.c:318:20: error: assignment from incompatible pointer type [-Werror] So just use siginfo_t here from the system signal.h header. Signed-off-by: Andrew Grigorev Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- include/types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/types.h b/include/types.h index 32e398e7f..f996f7533 100644 --- a/include/types.h +++ b/include/types.h @@ -3,6 +3,7 @@ #include #include +#include #include "bitops.h" @@ -87,8 +88,7 @@ typedef struct { unsigned long sig[1]; } rt_sigset_t; -struct siginfo; -typedef void rt_signalfn_t(int, struct siginfo *, void *); +typedef void rt_signalfn_t(int, siginfo_t *, void *); typedef rt_signalfn_t *rt_sighandler_t; typedef void rt_restorefn_t(void);