mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
Cygwin's GCC doesn't like this .sa_handler initialization for some reason
This commit is contained in:
parent
fe4ff24af8
commit
56c33caaec
@ -380,10 +380,11 @@ int main(int argc, char **argv)
|
|||||||
int callback5ret = -1;
|
int callback5ret = -1;
|
||||||
int callback6ret = -1;
|
int callback6ret = -1;
|
||||||
int callback7ret = -1;
|
int callback7ret = -1;
|
||||||
|
struct sigaction action_stop;
|
||||||
|
|
||||||
struct sigaction action_stop = {
|
memset(&action_stop, 0, sizeof action_stop);
|
||||||
.sa_handler = stop
|
|
||||||
};
|
action_stop.sa_handler = stop;
|
||||||
|
|
||||||
if(argc > 1 && STREQ(argv[1],"--help")) {
|
if(argc > 1 && STREQ(argv[1],"--help")) {
|
||||||
usage(argv[0]);
|
usage(argv[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user