From: Matthias Bolte Date: Sun, 25 Apr 2010 10:50:23 +0000 (+0200) Subject: Cygwin's GCC doesn't like this .sa_handler initialization for some reason X-Git-Tag: v0.8.1~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56c33caaecb53183b71f5d5df8f84d04c1279109;p=thirdparty%2Flibvirt.git Cygwin's GCC doesn't like this .sa_handler initialization for some reason --- diff --git a/examples/domain-events/events-c/event-test.c b/examples/domain-events/events-c/event-test.c index 53a3195166..74eabbac41 100644 --- a/examples/domain-events/events-c/event-test.c +++ b/examples/domain-events/events-c/event-test.c @@ -380,10 +380,11 @@ int main(int argc, char **argv) int callback5ret = -1; int callback6ret = -1; int callback7ret = -1; + struct sigaction action_stop; - struct sigaction action_stop = { - .sa_handler = stop - }; + memset(&action_stop, 0, sizeof action_stop); + + action_stop.sa_handler = stop; if(argc > 1 && STREQ(argv[1],"--help")) { usage(argv[0]);