Commit 1382f204 authored by Jake Kirshner's avatar Jake Kirshner

- bugfix for error: ISO C90 forbids mixed declarations and code in libev header

parent f315c1eb
......@@ -16,10 +16,12 @@ static int sigchld_state = 0;
static struct ev_loop* gevent_ev_default_loop(unsigned int flags)
{
if (sigchld_state)
return ev_default_loop(flags);
struct ev_loop* result;
struct sigaction tmp;
if (sigchld_state)
return ev_default_loop(flags);
sigaction(SIGCHLD, NULL, &tmp);
result = ev_default_loop(flags);
// XXX what if SIGCHLD received there?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment