forwardport: warning fix and netbsd fix

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9883 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2003-04-08 17:36:33 +00:00
parent 6ed5e90623
commit caf9a94289
1 changed files with 8 additions and 1 deletions

View File

@ -117,6 +117,12 @@
#define SYS_CYGWIN
#endif
#ifndef HAVE_MPLAYER
#include "get_path.c"
#else
extern char * get_path( char * filename );
#endif
/**
* \brief Symbol for version checks.
*
@ -390,7 +396,7 @@ extern dvdcss_t dvdcss_open ( char *psz_target )
goto nocache;
}
i += sprintf( dvdcss->psz_cachefile + i, "/%s/", psz_data );
i += sprintf( dvdcss->psz_cachefile + i, "/%s", psz_data );
#if !defined( WIN32 ) || defined( SYS_CYGWIN )
i_ret = mkdir( dvdcss->psz_cachefile, 0755 );
#else
@ -402,6 +408,7 @@ extern dvdcss_t dvdcss_open ( char *psz_target )
dvdcss->psz_cachefile[0] = '\0';
goto nocache;
}
i += sprintf( dvdcss->psz_cachefile + i, "/");
/* Pointer to the filename we will use. */
dvdcss->psz_block = dvdcss->psz_cachefile + i;