#include <pthread.h>
#ifdef HAVE_EXECINFO_H
# include <execinfo.h>
+# include <unistd.h>
#endif
#ifdef NDEBUG
# undef HAVE_BACKTRACE
fputs (")\n", stderr);
fflush (stderr);
#ifdef HAVE_BACKTRACE
- backtrace_symbols_fd (framev + 2, framec - 2, fileno (stderr));
+ backtrace_symbols_fd (framev + 2, framec - 2, STDERR_FILENO);
#endif
}
funlockfile (stderr);
SetUnhandledExceptionFilter(vlc_exception_filter);
}
- _setmode( _fileno( stdin ), _O_BINARY ); /* Needed for pipes */
+ _setmode( STDIN_FILENO, _O_BINARY ); /* Needed for pipes */
#else /* UNDER_CE */
char **argv, psz_cmdline[wcslen(lpCmdLine) * 4];
if( !strcmp( p_access->psz_path, "-" ) )
{
#if defined( WIN32 ) || defined( __OS2__ )
- setmode (fileno (stdout), O_BINARY);
+ setmode (STDOUT_FILENO, O_BINARY);
#endif
- fd = vlc_dup (fileno (stdout));
+ fd = vlc_dup (STDOUT_FILENO);
if (fd == -1)
{
msg_Err (p_access, "cannot use standard output: %m");