# HG changeset patch # User reimar # Date 1129033029 0 # Node ID 880739620241b069dfdc670bbf862c7f05d892f7 # Parent 2a7220c457a7fab222291af3b74ccfe9b62dddfa Compile fix: _lseeki64 is not available under cygwin diff -r 2a7220c457a7 -r 880739620241 libmpdvdkit2/common.h --- a/libmpdvdkit2/common.h Tue Oct 11 08:50:32 2005 +0000 +++ b/libmpdvdkit2/common.h Tue Oct 11 12:17:09 2005 +0000 @@ -3,6 +3,9 @@ * Collection of useful common types and macros definitions ***************************************************************************** * Copyright (C) 1998, 1999, 2000 VideoLAN + * + * Modified for use with MPlayer, changes contained in libdvdread_changes.diff. + * detailed CVS changelog at http://www.mplayerhq.hu/cgi-bin/cvsweb.cgi/main/ * $Id$ * * Authors: Samuel Hocevar @@ -50,10 +53,9 @@ # define PATH_MAX MAX_PATH #endif -#define lseek _lseeki64 - /* several type definitions */ # if defined( __MINGW32__ ) +#define lseek _lseeki64 # if !defined( _OFF_T_ ) typedef long long _off_t; typedef _off_t off_t; diff -r 2a7220c457a7 -r 880739620241 libmpdvdkit2/libdvdread_changes.diff --- a/libmpdvdkit2/libdvdread_changes.diff Tue Oct 11 08:50:32 2005 +0000 +++ b/libmpdvdkit2/libdvdread_changes.diff Tue Oct 11 12:17:09 2005 +0000 @@ -70,6 +70,21 @@ x = ((((x) & 0xff00) >> 8) | \ (((x) & 0x00ff) << 8)) diff -Naur dvdread.orig/.cvsignore dvdread/.cvsignore +diff -Naur dvdread.orig/common.h dvdread/common.h +--- dvdread.orig/common.h 2005-10-11 10:55:45.000000000 +0200 ++++ dvdread/common.h 2005-10-11 14:07:42.000000000 +0200 +@@ -50,10 +50,9 @@ + # define PATH_MAX MAX_PATH + #endif + +-#define lseek _lseeki64 +- + /* several type definitions */ + # if defined( __MINGW32__ ) ++#define lseek _lseeki64 + # if !defined( _OFF_T_ ) + typedef long long _off_t; + typedef _off_t off_t; diff -Naur dvdread.orig/dvd_input.c dvdread/dvd_input.c --- dvdread.orig/dvd_input.c 2005-06-23 00:18:54.000000000 +0200 +++ dvdread/dvd_input.c 2005-06-23 00:30:23.000000000 +0200