From 5776f4d57d4fc5c8c7ccab363ac5885a82217ec6 Mon Sep 17 00:00:00 2001 From: HanzZ Date: Sat, 1 Sep 2012 08:15:27 +0200 Subject: [PATCH] do not handle signals in yahoo backend on windows --- backends/libyahoo2/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backends/libyahoo2/main.cpp b/backends/libyahoo2/main.cpp index eda158b0..21eb3316 100644 --- a/backends/libyahoo2/main.cpp +++ b/backends/libyahoo2/main.cpp @@ -19,11 +19,13 @@ #include "Swiften/Network/TLSConnectionFactory.h" #include "Swiften/TLS/OpenSSL/OpenSSLContextFactory.h" +#ifndef _WIN32 // for signal handler #include "unistd.h" #include "signal.h" #include "sys/wait.h" #include "sys/signal.h" +#endif // Boost #include @@ -732,10 +734,12 @@ int main (int argc, char* argv[]) { std::string host; int port; +#ifndef _WIN32 if (signal(SIGCHLD, spectrum_sigchld_handler) == SIG_ERR) { std::cout << "SIGCHLD handler can't be set\n"; return -1; } +#endif boost::program_options::options_description desc("Usage: spectrum [OPTIONS] \nAllowed options"); desc.add_options()