Commit 2669f3af authored by Diego Biurrun's avatar Diego Biurrun Committed by Steve Lhomme
Browse files

fix cygwin compilation regarding the lseek change

parent ba022acf
......@@ -52,7 +52,7 @@
/* several type definitions */
# if defined( __MINGW32__ )
# define lseek64 _lseeki64
# define lseek _lseeki64
# if !defined( _OFF_T_ )
typedef long long _off_t;
typedef _off_t off_t;
......@@ -63,6 +63,7 @@ typedef _off_t off_t;
# endif
# if defined( _MSC_VER )
# define lseek _lseeki64
# if !defined( _OFF_T_DEFINED )
typedef __int64 off_t;
# define _OFF_T_DEFINED
......@@ -76,9 +77,5 @@ typedef __int64 off_t;
# define snprintf _snprintf /* snprintf not defined in mingw32 (bug?) */
# endif
#else
# define lseek64 lseek
#endif
......@@ -592,7 +592,7 @@ static int libc_seek( dvdcss_t dvdcss, int i_blocks )
}
i_seek = (off_t)i_blocks * (off_t)DVDCSS_BLOCK_SIZE;
i_seek = lseek64( dvdcss->i_read_fd, i_seek, SEEK_SET );
i_seek = lseek( dvdcss->i_read_fd, i_seek, SEEK_SET );
if( i_seek < 0 )
{
......
Supports Markdown
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