[vlc-commits] Improve libupnp integration on Win32

Jean-Baptiste Kempf git at videolan.org
Sun Feb 13 11:38:06 CET 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Feb 13 11:35:29 2011 +0100| [defb5939bda569de6dd11427330b29a333ff9529] | committer: Jean-Baptiste Kempf

Improve libupnp integration on Win32

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=defb5939bda569de6dd11427330b29a333ff9529
---

 extras/contrib/src/Patches/libupnp-win32.patch |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/extras/contrib/src/Patches/libupnp-win32.patch b/extras/contrib/src/Patches/libupnp-win32.patch
index 856bae8..f26ba5b 100644
--- a/extras/contrib/src/Patches/libupnp-win32.patch
+++ b/extras/contrib/src/Patches/libupnp-win32.patch
@@ -8,3 +8,24 @@
  #
  # Determine if pthread_rwlock_t is available
  #
+--- libupnp/libupnp.pc.in	2010-12-23 21:24:05.000000000 +0100
++++ libupnp.new/libupnp.pc.in	2011-02-13 11:27:23.000000000 +0100
+@@ -6,6 +6,6 @@
+ Name: libupnp
+ Description: Linux SDK for UPnP Devices
+ Version: @VERSION@
+-Libs: @PTHREAD_CFLAGS@ @PTHREAD_LIBS@ -L${libdir} -lupnp -lthreadutil -lixml 
++Libs: @PTHREAD_CFLAGS@ -L${libdir} -lupnp -lthreadutil -lixml -liphlpapi @PTHREAD_LIBS@ 
+ Cflags: @PTHREAD_CFLAGS@ -I${includedir}/upnp
+ 
+--- libupnp/upnp/src/inc/upnputil.h	2010-12-23 21:24:06.000000000 +0100
++++ libupnp.new/upnp/src/inc/upnputil.h	2011-02-13 08:24:24.000000000 +0100
+@@ -125,7 +125,7 @@
+ 		#define strncasecmp		strnicmp
+ 		#define sleep(a)		Sleep((a)*1000)
+ 		#define usleep(a)		Sleep((a)/1000)
+-		#define strerror_r(a,b,c)	(strerror_s((b),(c),(a)))
++		#define strerror_r(a,b,c)       strncpy( b, strerror(a), c)
+ 	#else
+ 		#define max(a, b)   (((a)>(b))? (a):(b))
+ 		#define min(a, b)   (((a)<(b))? (a):(b))



More information about the vlc-commits mailing list