diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-11-07 21:01:26 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-11-07 21:01:26 +0000 |
commit | 4e1ec3e05e39699025e087929b84f3634929ae4c (patch) | |
tree | e650c33782e8697430a53874245dd2d7af85900f /signal.c | |
parent | 45c7ab25de2dea155332cc144c1f94f5c073c919 (diff) | |
download | libevent-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.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) |