From 9ddc54ae7b79c49b5904888775f089f0d4614e02 Mon Sep 17 00:00:00 2001 From: Stephen Torri Date: Tue, 22 Oct 2002 04:28:10 +0000 Subject: Added "compat.h" to clear up compiler error of undeclared macros. Changed PATH_MAX to XINE_PATH_MAX Compiler warnings to be fixed: dvd_reader.c: In function `DVDOpenPath': dvd_reader.c:187: warning: implicit declaration of function `strdup' dvd_reader.c:187: warning: assignment makes pointer from integer without a cast dvd_reader.c: In function `DVDOpen': dvd_reader.c:282: warning: assignment makes pointer from integer without a cast dvd_reader.c:292: warning: implicit declaration of function `fchdir' dvd_reader.c:312: warning: implicit declaration of function `strcasecmp' dvd_reader.c:361: warning: assignment makes pointer from integer without a cast dvd_reader.c: In function `findDVDFile': dvd_reader.c:460: warning: implicit declaration of function `strncasecmp' CVS patchset: 2906 CVS date: 2002/10/22 04:28:10 --- src/input/libdvdread/dvd_reader.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/input/libdvdread/dvd_reader.c b/src/input/libdvdread/dvd_reader.c index 0ec6fb24d..1113cf92b 100644 --- a/src/input/libdvdread/dvd_reader.c +++ b/src/input/libdvdread/dvd_reader.c @@ -28,7 +28,6 @@ #include #include #include - #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__bsdi__)|| defined(__DARWIN__) #define SYS_BSD 1 #endif @@ -41,6 +40,7 @@ #include #endif +#include "compat.h" #include "dvd_udf.h" #include "dvd_input.h" #include "dvd_reader.h" @@ -288,7 +288,7 @@ dvd_reader_t *DVDOpen( const char *path ) if( cdir >= 0 ) { chdir( path_copy ); - new_path = getcwd( NULL, PATH_MAX ); + new_path = getcwd( NULL, XINE_PATH_MAX ); fchdir( cdir ); close( cdir ); if( new_path ) { @@ -452,7 +452,7 @@ static int findDirFile( const char *path, const char *file, char *filename ) static int findDVDFile( dvd_reader_t *dvd, const char *file, char *filename ) { - char video_path[ PATH_MAX + 1 ]; + char video_path[ XINE_PATH_MAX + 1 ]; const char *nodirfile; int ret; @@ -486,7 +486,7 @@ static int findDVDFile( dvd_reader_t *dvd, const char *file, char *filename ) */ static dvd_file_t *DVDOpenFilePath( dvd_reader_t *dvd, char *filename ) { - char full_path[ PATH_MAX + 1 ]; + char full_path[ XINE_PATH_MAX + 1 ]; dvd_file_t *dvd_file; struct stat fileinfo; dvd_input_t dev; @@ -571,7 +571,7 @@ static dvd_file_t *DVDOpenVOBUDF( dvd_reader_t *dvd, int title, int menu ) static dvd_file_t *DVDOpenVOBPath( dvd_reader_t *dvd, int title, int menu ) { char filename[ MAX_UDF_FILE_NAME_LEN ]; - char full_path[ PATH_MAX + 1 ]; + char full_path[ XINE_PATH_MAX + 1 ]; struct stat fileinfo; dvd_file_t *dvd_file; int i; -- cgit v1.2.3