OSDN Git Service

add packaging rules for building debian source packages
[handbrake-jp/handbrake-jp-git.git] / contrib / libmkv / P00-mingw-large-file.patch
1 --- libmkv.orig/src/matroska.c  2009-01-12 23:14:26.000000000 -0800
2 +++ libmkv/src/matroska.c       2009-03-25 15:22:30.000000000 -0700
3 @@ -27,6 +27,11 @@
4  
5  #include <sys/time.h>
6  
7 +#if defined( __MINGW32__ )
8 +#undef fseeko
9 +#define fseeko fseeko64
10 +#endif
11 +
12  #define RESERVED_SEEKHEAD 0x100
13  /* 256 bytes should be enough room for our Seek entries. */
14  #define RESERVED_CHAPTERS 0x800
15 @@ -34,7 +39,7 @@
16  
17  int mk_seekFile(mk_Writer *w, uint64_t pos)
18  {
19 -       if (fseek(w->fp, pos, SEEK_SET))
20 +       if (fseeko(w->fp, pos, SEEK_SET))
21                 return -1;
22  
23         w->f_pos = pos;
24