ref: 2669f3af06e1f1eb47e8f26232ae48b060dd0a3b
parent: ba022acfaa68203c2e17cdf7f14f51dc0ddadf56
author: Diego Biurrun <diego@biurrun.de>
date: Tue Nov 7 11:27:40 EST 2006
fix cygwin compilation regarding the lseek change
--- a/src/common.h
+++ b/src/common.h
@@ -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 @@
# endif
# if defined( _MSC_VER )
+# define lseek _lseeki64
# if !defined( _OFF_T_DEFINED )
typedef __int64 off_t;
# define _OFF_T_DEFINED
@@ -75,10 +76,6 @@
# ifndef snprintf
# define snprintf _snprintf /* snprintf not defined in mingw32 (bug?) */
# endif
-
-#else
-
-# define lseek64 lseek
#endif
--- a/src/device.c
+++ b/src/device.c
@@ -592,7 +592,7 @@
}
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 )
{