Commit 15569018 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32: fix sockets leak

parent 0f1b4876
......@@ -50,6 +50,14 @@
# include <unistd.h>
#else
# include <io.h>
# include <winsock2.h>
# include <ws2tcpip.h>
# undef read
# define read( a, b, c ) recv (a, b, c, 0)
# undef write
# define write( a, b, c ) send (a, b, c, 0)
# undef close
# define close( a ) closesocket (a)
#endif
#include <search.h>
......@@ -303,9 +311,6 @@ static void vlc_object_destroy( vlc_object_t *p_this )
#ifdef WIN32
# include <winsock2.h>
# include <ws2tcpip.h>
/**
* select()-able pipes emulated using Winsock
*/
......@@ -346,13 +351,6 @@ error:
closesocket (c);
return -1;
}
#undef read
#define read( a, b, c ) recv (a, b, c, 0)
#undef write
#define write( a, b, c ) send (a, b, c, 0)
#undef close
#define close( a ) closesocket (a)
#endif /* WIN32 */
static vlc_mutex_t pipe_lock = VLC_STATIC_MUTEX;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment