Commit 8fe4188e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Use vlc_dup

parent 71a1c8a6
......@@ -68,7 +68,6 @@
# define lseek _lseeki64
#elif defined( UNDER_CE )
/* FIXME the commandline on wince is a mess */
# define dup(a) -1
# define PathIsNetworkPathW(wpath) (! wcsncmp(wpath, L"\\\\", 2))
#endif
......@@ -145,7 +144,7 @@ int Open( vlc_object_t *p_this )
int oldfd = strtol (path, &end, 10);
if (*end == '\0')
fd = dup (oldfd);
fd = vlc_dup (oldfd);
#ifdef HAVE_FDOPENDIR
else if (*end == '/' && end > path)
{
......
......@@ -119,7 +119,7 @@ static int Open( vlc_object_t *p_this )
#ifdef WIN32
setmode (fileno (stdout), O_BINARY);
#endif
fd = dup (fileno (stdout));
fd = vlc_dup (fileno (stdout));
msg_Dbg( p_access, "using stdout" );
#else
#warning stdout is not supported on Windows Mobile, but may be used on Windows CE
......
......@@ -82,7 +82,7 @@ rtcp_sender_t *OpenRTCP (vlc_object_t *obj, int rtp_fd, int proto,
{
/* RTP/RTCP mux: duplicate the socket */
#ifndef WIN32
fd = dup (rtp_fd);
fd = vlc_dup (rtp_fd);
#elif defined(UNDER_CE)
#warning Muxed RTP/RTCP unimplemented!
fd = -1;
......
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