Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
1dddea82
Commit
1dddea82
authored
Sep 23, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contrib: fix upnp compilation on win64
parent
1dc1a52a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
82 additions
and
0 deletions
+82
-0
contrib/src/upnp/libupnp-win64.patch
contrib/src/upnp/libupnp-win64.patch
+40
-0
contrib/src/upnp/rules.mak
contrib/src/upnp/rules.mak
+1
-0
extras/contrib/src/Patches/libupnp-win64.patch
extras/contrib/src/Patches/libupnp-win64.patch
+40
-0
extras/contrib/src/contrib-src.mak
extras/contrib/src/contrib-src.mak
+1
-0
No files found.
contrib/src/upnp/libupnp-win64.patch
0 → 100644
View file @
1dddea82
--- libupnp/upnp/inc/upnp.h 2011-03-15 22:59:38.000000000 +0100
+++ libupnp.new/upnp/inc/upnp.h 2011-09-23 01:39:55.000000000 +0200
@@ -57,6 +57,19 @@
/* Other systems ??? */
#endif
+# if defined( __MINGW32__ )
+# if !defined( _OFF_T_ )
+ typedef long long _off_t;
+ typedef _off_t off_t;
+# define _OFF_T_
+# else
+# ifdef off_t
+# undef off_t
+# endif
+# define off_t long long
+# endif
+# endif
+
#define LINE_SIZE 180
#define NAME_SIZE 256
#define MNFT_NAME_SIZE 64
--- libupnp/threadutil/inc/ThreadPool.h 2011-01-20 07:46:57.000000000 +0100
+++ libupnp.new/threadutil/inc/ThreadPool.h 2011-09-23 01:36:12.000000000 +0200
@@ -45,6 +45,7 @@
#include <errno.h>
#ifdef WIN32
+ #ifndef _TIMEZONE_DEFINED
#include <time.h>
struct timezone
{
@@ -52,6 +53,7 @@
int tz_dsttime; /* type of dst correction */
};
int gettimeofday(struct timeval *tv, struct timezone *tz);
+ #endif
#else /* WIN32 */
#include <sys/param.h>
#include <sys/time.h> /* for gettimeofday() */
contrib/src/upnp/rules.mak
View file @
1dddea82
...
@@ -17,6 +17,7 @@ upnp: libupnp-$(UPNP_VERSION).tar.bz2 .sum-upnp
...
@@ -17,6 +17,7 @@ upnp: libupnp-$(UPNP_VERSION).tar.bz2 .sum-upnp
ifdef
HAVE_WIN32
ifdef
HAVE_WIN32
$(APPLY)
$(SRC)
/upnp/libupnp-configure.patch
$(APPLY)
$(SRC)
/upnp/libupnp-configure.patch
$(APPLY)
$(SRC)
/upnp/libupnp-win32.patch
$(APPLY)
$(SRC)
/upnp/libupnp-win32.patch
$(APPLY)
$(SRC)
/upnp/libupnp-win64.patch
endif
endif
$(MOVE)
$(MOVE)
...
...
extras/contrib/src/Patches/libupnp-win64.patch
0 → 100644
View file @
1dddea82
--- libupnp/upnp/inc/upnp.h 2011-03-15 22:59:38.000000000 +0100
+++ libupnp.new/upnp/inc/upnp.h 2011-09-23 01:39:55.000000000 +0200
@@ -57,6 +57,19 @@
/* Other systems ??? */
#endif
+# if defined( __MINGW32__ )
+# if !defined( _OFF_T_ )
+ typedef long long _off_t;
+ typedef _off_t off_t;
+# define _OFF_T_
+# else
+# ifdef off_t
+# undef off_t
+# endif
+# define off_t long long
+# endif
+# endif
+
#define LINE_SIZE 180
#define NAME_SIZE 256
#define MNFT_NAME_SIZE 64
--- libupnp/threadutil/inc/ThreadPool.h 2011-01-20 07:46:57.000000000 +0100
+++ libupnp.new/threadutil/inc/ThreadPool.h 2011-09-23 01:36:12.000000000 +0200
@@ -45,6 +45,7 @@
#include <errno.h>
#ifdef WIN32
+ #ifndef _TIMEZONE_DEFINED
#include <time.h>
struct timezone
{
@@ -52,6 +53,7 @@
int tz_dsttime; /* type of dst correction */
};
int gettimeofday(struct timeval *tv, struct timezone *tz);
+ #endif
#else /* WIN32 */
#include <sys/param.h>
#include <sys/time.h> /* for gettimeofday() */
extras/contrib/src/contrib-src.mak
View file @
1dddea82
...
@@ -2457,6 +2457,7 @@ libupnp: libupnp-$(UPNP_VERSION).tar.bz2
...
@@ -2457,6 +2457,7 @@ libupnp: libupnp-$(UPNP_VERSION).tar.bz2
ifdef
HAVE_WIN32
ifdef
HAVE_WIN32
patch
-p0
< Patches/libupnp-configure.patch
patch
-p0
< Patches/libupnp-configure.patch
patch
-p0
< Patches/libupnp-win32.patch
patch
-p0
< Patches/libupnp-win32.patch
patch
-p0
< Patches/libupnp-win64.patch
endif
endif
cd
$@
;
libtoolize
&&
autoreconf
cd
$@
;
libtoolize
&&
autoreconf
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment