summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephen Torri <storri@users.sourceforge.net>2002-10-22 04:28:10 +0000
committerStephen Torri <storri@users.sourceforge.net>2002-10-22 04:28:10 +0000
commit9ddc54ae7b79c49b5904888775f089f0d4614e02 (patch)
tree3420f225679cfaae5dbf76c86875baa6a5d6f848 /src
parentee978ac64152820b5b838469ee2a50c69b662dbc (diff)
downloadxine-lib-9ddc54ae7b79c49b5904888775f089f0d4614e02.tar.gz
xine-lib-9ddc54ae7b79c49b5904888775f089f0d4614e02.tar.bz2
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
Diffstat (limited to 'src')
-rw-r--r--src/input/libdvdread/dvd_reader.c10
1 files 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 <unistd.h>
#include <limits.h>
#include <dirent.h>
-
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__bsdi__)|| defined(__DARWIN__)
#define SYS_BSD 1
#endif
@@ -41,6 +40,7 @@
#include <mntent.h>
#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;