Commit 51e9cd32 authored by Andrew Grigorev's avatar Andrew Grigorev Committed by Pavel Emelyanov

types: use siginfo_t from signal.h for rt_signalfn_t declaration

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: 's avatarAndrew Grigorev <andrew@ei-grad.ru>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent aa731ee1
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <signal.h>
#include "bitops.h" #include "bitops.h"
...@@ -87,8 +88,7 @@ typedef struct { ...@@ -87,8 +88,7 @@ typedef struct {
unsigned long sig[1]; unsigned long sig[1];
} rt_sigset_t; } rt_sigset_t;
struct siginfo; typedef void rt_signalfn_t(int, siginfo_t *, void *);
typedef void rt_signalfn_t(int, struct siginfo *, void *);
typedef rt_signalfn_t *rt_sighandler_t; typedef rt_signalfn_t *rt_sighandler_t;
typedef void rt_restorefn_t(void); typedef void rt_restorefn_t(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment