summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anylike.org>2010-01-06 02:08:53 +0000
committerChristian Pointner <equinox@anylike.org>2010-01-06 02:08:53 +0000
commit4117428f813ffb3dc0acd41009a92444b57769b5 (patch)
treee0840d70ff5faa07b9fa8821ce42f0c4f2950c2e
parentbuilds now on windows using MinGW and MSYS (diff)
cleanup at signal handler
-rw-r--r--src/sig_handler.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sig_handler.c b/src/sig_handler.c
index 461c341..843ab9b 100644
--- a/src/sig_handler.c
+++ b/src/sig_handler.c
@@ -40,12 +40,12 @@
#include "sig_handler.h"
#include <errno.h>
+
#ifndef WINVER
#include <signal.h>
#include <unistd.h>
#include <fcntl.h>
-#include <sys/select.h>
static int sig_pipe_fds[2];
@@ -157,8 +157,10 @@ void signal_stop()
close(sig_pipe_fds[1]);
}
+
#else
+
#include <winsock2.h>
#include <windows.h>