]> git.sesse.net Git - vlc/blob - contrib/src/upnp/libupnp-win64.patch
NEWS about 2.1.0
[vlc] / contrib / src / upnp / libupnp-win64.patch
1 --- libupnp/threadutil/inc/ThreadPool.h 2011-01-20 07:46:57.000000000 +0100
2 +++ libupnp.new/threadutil/inc/ThreadPool.h     2011-09-23 01:36:12.000000000 +0200
3 @@ -45,6 +45,7 @@
4  #include <errno.h>
5
6  #ifdef WIN32
7 +       #ifndef _TIMEZONE_DEFINED
8         #include <time.h>
9         struct timezone
10         {
11 @@ -52,6 +53,7 @@
12                 int  tz_dsttime;     /* type of dst correction */
13         };
14         int gettimeofday(struct timeval *tv, struct timezone *tz);
15 +       #endif
16  #else /* WIN32 */
17         #include <sys/param.h>
18         #include <sys/time.h> /* for gettimeofday() */
19 --- libupnp-1.6.16/upnp/inc/upnp.h.orig 2012-03-22 00:15:38.000000000 +0100
20 +++ libupnp-1.6.16/upnp/inc/upnp.h      2012-03-28 18:58:55.043642000 +0200
21 @@ -61,6 +61,20 @@
22         /* Other systems ??? */
23  #endif
24  
25 +#   if defined( __MINGW32__ )
26 +#       if !defined( _OFF_T_ )
27 +            typedef long long _off_t;
28 +            typedef _off_t off_t;
29 +#           define _OFF_T_
30 +#       else
31 +#           ifdef off_t
32 +#               undef off_t
33 +#           endif
34 +#           define off_t long long
35 +#       endif
36 +#   endif
37 +
38 +
39  #define LINE_SIZE  (size_t)180
40  #define NAME_SIZE  (size_t)256
41  #define MNFT_NAME_SIZE  64