Commit cc43bca3 authored by Gildas Bazin's avatar Gildas Bazin

* src/playlist/loadsave.c: errno.h related fixes.
* modules/demux/Modules.am: added missing ps.h.
parent e6c26135
...@@ -15,6 +15,6 @@ SOURCES_demux2 = demux2.c ...@@ -15,6 +15,6 @@ SOURCES_demux2 = demux2.c
SOURCES_nsv = nsv.c SOURCES_nsv = nsv.c
SOURCES_real = real.c SOURCES_real = real.c
SOURCES_ts2 = ts.c SOURCES_ts2 = ts.c
SOURCES_ps2 = ps.c SOURCES_ps2 = ps.c ps.h
SOURCES_dvdnav = dvdnav.c SOURCES_dvdnav = dvdnav.c
SOURCES_mod = mod.c SOURCES_mod = mod.c
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* loadsave.c : Playlist loading / saving functions * loadsave.c : Playlist loading / saving functions
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2004 VideoLAN * Copyright (C) 1999-2004 VideoLAN
* $Id: loadsave.c,v 1.5 2004/01/12 21:22:23 hartman Exp $ * $Id: loadsave.c,v 1.6 2004/01/22 19:35:14 gbazin Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -28,6 +28,10 @@ ...@@ -28,6 +28,10 @@
#include <vlc/vout.h> #include <vlc/vout.h>
#include <vlc/sout.h> #include <vlc/sout.h>
#ifdef HAVE_ERRNO_H
# include <errno.h>
#endif
#include "stream_control.h" #include "stream_control.h"
#include "input_ext-intf.h" #include "input_ext-intf.h"
...@@ -89,7 +93,6 @@ int playlist_Import( playlist_t * p_playlist, const char *psz_filename ) ...@@ -89,7 +93,6 @@ int playlist_Import( playlist_t * p_playlist, const char *psz_filename )
int playlist_Export( playlist_t * p_playlist, const char *psz_filename , int playlist_Export( playlist_t * p_playlist, const char *psz_filename ,
const char *psz_type) const char *psz_type)
{ {
extern int errno;
module_t *p_module; module_t *p_module;
playlist_export_t *p_export; playlist_export_t *p_export;
...@@ -105,9 +108,13 @@ int playlist_Export( playlist_t * p_playlist, const char *psz_filename , ...@@ -105,9 +108,13 @@ int playlist_Export( playlist_t * p_playlist, const char *psz_filename ,
p_export->p_file = fopen( psz_filename, "wt" ); p_export->p_file = fopen( psz_filename, "wt" );
if( !p_export->p_file ) if( !p_export->p_file )
{ {
msg_Err( p_playlist , "Could not create playlist file %s (%s)" msg_Err( p_playlist , "Could not create playlist file %s"
, psz_filename, strerror(errno) ); #ifdef HAVE_ERRNO_H
return -1; " (%s)", psz_filename, strerror(errno) );
#else
, psz_filename );
#endif
return VLC_EGENERIC;
} }
p_playlist->p_private = (void *)p_export; p_playlist->p_private = (void *)p_export;
......
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