PageRenderTime 35ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/contrib/src/gnutls/gnutls-win32.patch

https://bitbucket.org/romen/vlc
Patch | 31 lines | 29 code | 2 blank | 0 comment | 0 complexity | f7e104ce00c0da83990f9e37bdddbff8 MD5 | raw file
Possible License(s): AGPL-1.0, LGPL-2.1, WTFPL, GPL-2.0
  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. return _("Unknown error");
  14. }
  15. +#endif
  16. #ifdef _LIBC
  17. libc_hidden_def (gai_strerror)
  18. #endif
  19. --- gnutls/lib/gnutls.pc.in.orig 2011-11-26 14:40:52.343740836 -0500
  20. +++ gnutls/lib/gnutls.pc.in 2011-11-26 14:41:49.456024042 -0500
  21. @@ -19,7 +19,7 @@
  22. Description: Transport Security Layer implementation for the GNU system
  23. URL: http://www.gnu.org/software/gnutls/
  24. Version: @VERSION@
  25. -Libs: -L${libdir} -lgnutls
  26. +Libs: -L${libdir} -lgnutls -lws2_32 -lcrypt32 @LTLIBINTL@
  27. Libs.private: @LTLIBGCRYPT@ @NETTLE_LIBS@
  28. @GNUTLS_REQUIRES_PRIVATE@
  29. Cflags: -I${includedir}