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/streamin~.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/streamin~.c')
-rw-r--r-- | signal/streamin~.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/signal/streamin~.c b/signal/streamin~.c index 147b732..fcb8084 100644 --- a/signal/streamin~.c +++ b/signal/streamin~.c @@ -3,11 +3,14 @@ /* Thanks to Anthony Lee for Windows bug fixes */
#include <m_pd.h>
+#include <s_stuff.h>
#include "stream.h"
#include <sys/types.h>
#include <string.h>
-#ifdef unix
+#ifdef _WIN32
+#include <winsock.h>
+#else
#include <sys/socket.h>
#include <errno.h>
#include <netinet/in.h>
@@ -17,8 +20,6 @@ #include <unistd.h>
#include <fcntl.h>
#define SOCKET_ERROR -1
-#else
-#include <winsock.h>
#endif
/* these pragmas are only used for MSVC, not MinGW or Cygwin <hans@at.or.at> */
|