From c08df8dda4424f84dbf34df69c71634d408eba7c Mon Sep 17 00:00:00 2001 From: carmen rocco Date: Sat, 22 May 2004 14:04:17 +0000 Subject: making mp3*~ work on windows svn path=/trunk/externals/unauthorized/; revision=1755 --- mp3amp~/mp3amp~.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mp3amp~') diff --git a/mp3amp~/mp3amp~.c b/mp3amp~/mp3amp~.c index a8d8ff7..bf93d98 100644 --- a/mp3amp~/mp3amp~.c +++ b/mp3amp~/mp3amp~.c @@ -52,6 +52,8 @@ #define SOCKET_ERROR -1 #else #include +#include +#include #endif #ifdef NT @@ -64,8 +66,11 @@ #endif #ifdef NT #define STRDUP _strdup +#define MSG_NOSIGNAL 0 +#define sys_closesocket closesocket #endif + #define LAME_AUDIO_CHUNK_SIZE 1152 #define MIN_AUDIO_INPUT 2*LAME_AUDIO_CHUNK_SIZE /* we must have at least n chunks to play a steady sound */ #define INPUT_BUFFER_SIZE 131072 /* data received on the socket : 128k */ -- cgit v1.2.1