summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-11-07 21:01:26 +0000
committerNick Mathewson <nickm@torproject.org>2007-11-07 21:01:26 +0000
commit4e1ec3e05e39699025e087929b84f3634929ae4c (patch)
treee650c33782e8697430a53874245dd2d7af85900f /signal.c
parent45c7ab25de2dea155332cc144c1f94f5c073c919 (diff)
downloadlibevent-4e1ec3e05e39699025e087929b84f3634929ae4c.tar.gz
Make all the C files in the libraries compile under MSVC 2005 Express. There are still a few warnings, and probably some subtle issues, but it's better than nothing.
svn:r499
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/signal.c b/signal.c
index fa233e4e..3636b4f4 100644
--- a/signal.c
+++ b/signal.c
@@ -39,8 +39,6 @@
#include <sys/types.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
-#else
-#include <sys/_time.h>
#endif
#include <sys/queue.h>
#ifdef HAVE_SYS_SOCKET_H
@@ -50,7 +48,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <errno.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
@@ -73,7 +73,11 @@ evsignal_cb(int fd, short what, void *arg)
{
static char signals[100];
struct event *ev = arg;
+#ifdef WIN32
+ SSIZE_T n;
+#else
ssize_t n;
+#endif
n = recv(fd, signals, sizeof(signals), 0);
if (n == -1)