]> git.sesse.net Git - vlc/blob - contrib/src/gnutls/gnutls-win32.patch
contrib: fix gnutls.pc on win32
[vlc] / contrib / src / gnutls / gnutls-win32.patch
1 --- gnutls-2.2.5/gl/gai_strerror.c      2008-02-21 08:58:18.000000000 +0100
2 +++ gnutls/gl/gai_strerror.c    2008-05-22 08:20:56.000000000 +0200
3 @@ -62,7 +62,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 @@ -73,6 +73,7 @@
13  
14    return _("Unknown error");
15  }
16 +#endif
17  #ifdef _LIBC
18  libc_hidden_def (gai_strerror)
19  #endif
20
21 --- gnutls/lib/gnutls.pc.in.orig        2011-11-26 14:40:52.343740836 -0500
22 +++ gnutls/lib/gnutls.pc.in     2011-11-26 14:41:49.456024042 -0500
23 @@ -19,7 +19,7 @@
24  Description: Transport Security Layer implementation for the GNU system
25  URL: http://www.gnu.org/software/gnutls/
26  Version: @VERSION@
27 -Libs: -L${libdir} -lgnutls
28 +Libs: -L${libdir} -lgnutls -lws2_32 -lcrypt32 @LTLIBINTL@
29  Libs.private: @LTLIBGCRYPT@ @NETTLE_LIBS@
30  @GNUTLS_REQUIRES_PRIVATE@
31  Cflags: -I${includedir}