# 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
int oldfd = strtol (path, &end, 10);
if (*end == '\0')
- fd = dup (oldfd);
+ fd = vlc_dup (oldfd);
#ifdef HAVE_FDOPENDIR
else if (*end == '/' && end > path)
{
#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
{
/* 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;