diff options
Diffstat (limited to 'mp3streamin~.c')
-rw-r--r-- | mp3streamin~.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mp3streamin~.c b/mp3streamin~.c index c34213f..400f733 100644 --- a/mp3streamin~.c +++ b/mp3streamin~.c @@ -87,7 +87,7 @@ extern void sys_sockerror(char *s); void mp3streamin_closesocket(int fd) { -#ifdef UNIX +#ifndef _MSC_VER if ( close(fd) < 0 ) { perror( "close" ); @@ -97,7 +97,7 @@ void mp3streamin_closesocket(int fd) post( "mp3streamin~ : closed socket : %d", fd ); } #endif -#ifdef NT +#ifdef _WIN32 closesocket(fd); #endif sys_rmpollfn(fd); @@ -117,7 +117,7 @@ int setsocketoptions(int sockfd) post("mp3streamin~ : TCP_NODELAY set"); } -#ifdef UNIX +#ifndef _MSC_VER sockopt = 1; if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &sockopt, sizeof(int)) < 0) { |