fix: do not call setup_event_handlers() on WIN32

If we put setup_event_handlers() in #ifdef WIN32, we have to do it for
the call and the declaration, too
This commit is contained in:
Christian Kruse
2014-01-09 12:57:16 +01:00
parent cbce29f009
commit 634fdff303

View File

@@ -131,7 +131,10 @@ static volatile sig_atomic_t got_SIGHUP = false;
static void handle_sighup(SIGNAL_ARGS);
static void handle_sigint(SIGNAL_ARGS);
#ifndef WIN32
static void setup_event_handlers(void);
#endif
#define CloseConnections() \
if (PQisBusy(primaryConn) == 1) \
@@ -222,7 +225,9 @@ main(int argc, char **argv)
}
}
#ifndef WIN32
setup_event_handlers();
#endif
/*
* Read the configuration file: repmgr.conf