From 634fdff303b8a054cf1da34d6728a169457c7f7c Mon Sep 17 00:00:00 2001 From: Christian Kruse Date: Thu, 9 Jan 2014 12:57:16 +0100 Subject: [PATCH] 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 --- repmgrd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/repmgrd.c b/repmgrd.c index 6d616387..7c24cb68 100644 --- a/repmgrd.c +++ b/repmgrd.c @@ -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