]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/zlib.patch
contribs: updated the ffmpeg OSX intel mmx patch to match current svn
[vlc] / extras / contrib / src / Patches / zlib.patch
1 --- zlib/gzio.c 2005-07-11 21:31:48.000000000 +0100
2 +++ zlib/gzio.c 2005-11-22 22:26:26.000000000 +0000
3 @@ -35,6 +35,10 @@
4     FILE *fdopen(int, const char *);
5  #endif
6  
7 +#ifdef UNDER_CE
8 +#   define fdopen(fd, fmode) 0
9 +#endif
10 +
11  #ifndef STDC
12  extern voidp  malloc OF((uInt size));
13  extern void   free   OF((voidpf ptr));
14 ===================================================================
15 --- zlib/zutil.h        2005-11-27 20:05:31.000000000 +0000
16 +++ zlib/zutil.h        2005-11-27 20:06:16.000000000 +0000
17 @@ -36,6 +36,9 @@
18  #else
19  #  ifndef _WIN32_WCE
20  #    include <errno.h>
21 +#  else
22 +#    define errno z_errno
23 +     extern int errno;
24  #  endif
25  #endif
26