]> xenbits.xensource.com Git - libvirt.git/commitdiff
Cygwin's GCC doesn't like this .sa_handler initialization for some reason
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sun, 25 Apr 2010 10:50:23 +0000 (12:50 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Mon, 26 Apr 2010 19:13:47 +0000 (21:13 +0200)
examples/domain-events/events-c/event-test.c

index 53a319516692858f2668a2e245cbd9b5c8f120cb..74eabbac419ffa4e4d66158eac4fe06b1d95cf63 100644 (file)
@@ -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]);