diff options
Diffstat (limited to 'mp3amp~')
-rw-r--r-- | mp3amp~/mp3amp~.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 <winsock.h>
+#include <winbase.h>
+#include <io.h>
#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 */
|