[vlc-commits] contribs: gnutls: Fix linking on winrt

Hugo Beauzée-Luyssen git at videolan.org
Thu Dec 28 15:29:18 CET 2017


vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Dec 28 15:25:46 2017 +0100| [8d988d18a788310fe7275b61f0def3d16aadb90c] | committer: Hugo Beauzée-Luyssen

contribs: gnutls: Fix linking on winrt

(cherry picked from commit 981c03764201f3d41d0de0e5adf5513c8e43398e)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 contrib/src/gnutls/gnutls-loadlibrary.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/contrib/src/gnutls/gnutls-loadlibrary.patch b/contrib/src/gnutls/gnutls-loadlibrary.patch
index 442aa2e40d..84a3230074 100644
--- a/contrib/src/gnutls/gnutls-loadlibrary.patch
+++ b/contrib/src/gnutls/gnutls-loadlibrary.patch
@@ -9,3 +9,14 @@
  	if (ncrypt_lib == NULL) {
  		return gnutls_assert_val(GNUTLS_E_CRYPTO_INIT_FAILED);
  	}
+--- gnutls/lib/system.c.old	2017-12-28 15:24:07.479820602 +0100
++++ gnutls/lib/system.c	2017-12-28 15:25:33.587817242 +0100
+@@ -50,7 +50,7 @@
+ #if defined(_WIN32) && defined(NEED_CERT_ENUM_CRLS)
+ 	/* used in system/certs.c */
+ 	HMODULE crypto;
+-	crypto = LoadLibraryA("Crypt32.dll");
++	crypto = LoadLibrary(TEXT("Crypt32.dll"));
+ 
+ 	if (crypto == NULL)
+ 		return GNUTLS_E_CRYPTO_INIT_FAILED;



More information about the vlc-commits mailing list