aboutsummaryrefslogtreecommitdiff
path: root/mp3live~/mp3streamin~.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 /mp3live~/mp3streamin~.c
parentf3fa1baae47dcbf5539c877c20189a5e3dc37909 (diff)
updated things for the new build system while maintaining backwords compatibilty
svn path=/trunk/externals/unauthorized/; revision=4173
Diffstat (limited to 'mp3live~/mp3streamin~.c')
-rw-r--r--mp3live~/mp3streamin~.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mp3live~/mp3streamin~.c b/mp3live~/mp3streamin~.c
index 74a11f4..d34150b 100644
--- a/mp3live~/mp3streamin~.c
+++ b/mp3live~/mp3streamin~.c
@@ -40,7 +40,7 @@
#include <sys/types.h>
#include <string.h>
-#ifdef UNIX
+#ifndef WIN32
#include <sys/socket.h>
#include <errno.h>
#include <netinet/in.h>
@@ -54,9 +54,13 @@
#define SOCKET_ERROR -1
#else
#include <winsock.h>
+#endif
+
+#if defined(__APPLE__) || defined(WIN32)
#define MSG_NOSIGNAL 0
#define SOL_TCP IPPROTO_TCP
#endif
+
#include "mpg123.h" /* mpg123 decoding library from lame 3.92 */
#include "mpglib.h" /* mpglib decoding library from lame 3.92 */
#include "interface.h" /* mpglib decoding library from lame 3.92 */