diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-12-27 03:51:38 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-12-27 03:51:38 +0000 |
commit | e33b797ffa137522d3bcf8af53a9fa3dd0d2f730 (patch) | |
tree | 9d0fea3ba30a555a0f6dbc046bf64c874d8b3026 /signal/streamout~.c | |
parent | e526650c187a2e380277f18f1c6b03d22dbc3e98 (diff) |
following up on bug report #2921689, fixed a bunch of 'implicit declaration of function' warnings, which could cause problems on 64-bit
svn path=/trunk/externals/ggee/; revision=12846
Diffstat (limited to 'signal/streamout~.c')
-rw-r--r-- | signal/streamout~.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/signal/streamout~.c b/signal/streamout~.c index c23680e..eedbc0c 100644 --- a/signal/streamout~.c +++ b/signal/streamout~.c @@ -7,14 +7,15 @@ #include <sys/types.h>
#include <string.h>
#include <stdlib.h>
-#ifdef unix
+#ifdef _WIN32
+#include <winsock.h>
+#else
#include <errno.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
+#include <unistd.h>
#define SOCKET_ERROR -1
-#else
-#include <winsock.h>
#endif
#ifdef __APPLE__
|