mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
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: Andrew Grigorev <andrew@ei-grad.ru> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
aa731ee1d7
commit
51e9cd32b2
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <signal.h>
|
||||
|
||||
#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);
|
||||
|
Reference in New Issue
Block a user