aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--control/qread.c1
-rw-r--r--signal/sfwrite~.c1
-rw-r--r--signal/streamin~.c7
-rw-r--r--signal/streamout~.c7
4 files changed, 10 insertions, 6 deletions
diff --git a/control/qread.c b/control/qread.c
index 28112df..48c61a8 100644
--- a/control/qread.c
+++ b/control/qread.c
@@ -2,6 +2,7 @@
#include <m_pd.h>
+#include <g_canvas.h>
/* ------------------------ qread ----------------------------- */
diff --git a/signal/sfwrite~.c b/signal/sfwrite~.c
index dfbdbec..c7533a8 100644
--- a/signal/sfwrite~.c
+++ b/signal/sfwrite~.c
@@ -2,6 +2,7 @@
#include <m_pd.h>
+#include <g_canvas.h>
#ifdef _MSC_VER
#pragma warning( disable : 4244 )
#pragma warning( disable : 4305 )
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> */
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__