提交 56c33caa 编写于 作者: M Matthias Bolte

Cygwin's GCC doesn't like this .sa_handler initialization for some reason

上级 fe4ff24a
......@@ -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]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册