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

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


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

contribs: gnutls: Fix linking on winrt

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

 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