]> git.sesse.net Git - vlc/blob - contrib/src/gnutls/gnutls-win32.patch
Contribs: fix GnuTLS linking on Win32
[vlc] / contrib / src / gnutls / gnutls-win32.patch
1 --- gnutls-2.12.20/gl/gai_strerror.c.orig       2012-03-01 16:45:12.000000000 +0100
2 +++ gnutls-2.12.20/gl/gai_strerror.c    2012-09-27 14:39:30.273584236 +0200
3 @@ -75,7 +75,7 @@
4      { EAI_IDN_ENCODE, N_("Parameter string not correctly encoded") }
5  #endif
6    };
7 -
8 +#ifndef _WIN32
9  const char *
10  gai_strerror (int code)
11  {
12 @@ -89,4 +89,5 @@
13  # ifdef _LIBC
14  libc_hidden_def (gai_strerror)
15  # endif
16 +#endif
17  #endif /* !HAVE_DECL_GAI_STRERROR */
18 --- gnutls-3.2.17/lib/gnutls.pc.in.orig 2014-08-30 06:48:22.371307704 +0200
19 +++ gnutls-3.2.17/lib/gnutls.pc.in      2014-08-30 06:48:40.504956268 +0200
20 @@ -19,6 +19,6 @@
21  URL: http://www.gnutls.org/
22  Version: @VERSION@
23  Libs: -L${libdir} -lgnutls
24 -Libs.private: @LTLIBZ@ @LTLIBINTL@ @LIBSOCKET@ @LTLIBPTHREAD@ @LTLIBICONV@ @P11_KIT_LIBS@ @LIB_SELECT@ @TSS_LIBS@ @GMP_LIBS@
25 +Libs.private: @LTLIBZ@ @LTLIBINTL@ @LIBSOCKET@ -lcrypt32 @LTLIBPTHREAD@ @LTLIBICONV@ @P11_KIT_LIBS@ @LIB_SELECT@ @TSS_LIBS@ @GMP_LIBS@
26  @GNUTLS_REQUIRES_PRIVATE@
27  Cflags: -I${includedir}