aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Bolte <matthias.bolte@googlemail.com>2010-04-25 12:50:23 +0200
committerMatthias Bolte <matthias.bolte@googlemail.com>2010-04-26 21:13:47 +0200
commit56c33caaecb53183b71f5d5df8f84d04c1279109 (patch)
tree1d3f7fbba7f109c2c43c1b2137d602af7d33f2a3 /examples
parentlinux/if.h header is not available on non-Linux platforms (diff)
downloadlibvirt-56c33caaecb53183b71f5d5df8f84d04c1279109.tar.gz
libvirt-56c33caaecb53183b71f5d5df8f84d04c1279109.tar.bz2
libvirt-56c33caaecb53183b71f5d5df8f84d04c1279109.zip
Cygwin's GCC doesn't like this .sa_handler initialization for some reason
Diffstat (limited to 'examples')
-rw-r--r--examples/domain-events/events-c/event-test.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/domain-events/events-c/event-test.c b/examples/domain-events/events-c/event-test.c
index 53a319516..74eabbac4 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]);