aboutsummaryrefslogtreecommitdiff
path: root/speex~/speexout~.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-12-09 06:25:59 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-12-09 06:25:59 +0000
commitb13e2d6c3a525918ed0816c41433509477c9912a (patch)
tree3742538a19289098ae8ff6b04fec94bcab104dbc /speex~/speexout~.c
parentf3fa1baae47dcbf5539c877c20189a5e3dc37909 (diff)
updated things for the new build system while maintaining backwords compatibilty
svn path=/trunk/externals/unauthorized/; revision=4173
Diffstat (limited to 'speex~/speexout~.c')
-rw-r--r--speex~/speexout~.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/speex~/speexout~.c b/speex~/speexout~.c
index c6968d9..2d2c104 100644
--- a/speex~/speexout~.c
+++ b/speex~/speexout~.c
@@ -47,7 +47,12 @@
#include <malloc.h>
#endif
#include <ctype.h>
-#ifdef UNIX
+#ifdef WIN32
+#include <io.h>
+#include <windows.h>
+#include <winsock.h>
+#include <windef.h>
+#else
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
@@ -55,11 +60,10 @@
#include <time.h>
#include <sys/time.h>
#define SOCKET_ERROR -1
-#else
-#include <io.h>
-#include <windows.h>
-#include <winsock.h>
-#include <windef.h>
+#endif
+
+#if defined(__APPLE__) || defined(WIN32)
+#define MSG_NOSIGNAL 0
#endif
#include <speex/speex.h> /* speex codec stuff */