]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/gnutls-win32.patch
376e9b1538b638d1ecd3753e6738ef45adac4469
[vlc] / extras / contrib / src / Patches / gnutls-win32.patch
1 --- gnutls-1.4.0/gl/gai_strerror.c      2006-05-12 06:02:19.000000000 -0400
2 +++ gnutls/gl/gai_strerror.c    2006-11-22 10:28:13.937500000 -0500
3 @@ -64,7 +64,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 @@ -75,6 +75,7 @@
13  
14    return _("Unknown error");
15  }
16 +#endif
17  #ifdef _LIBC
18  libc_hidden_def (gai_strerror)
19  #endif
20 --- gnutls-1.6.1/configure.in   2006-11-26 11:19:05.000000000 +0100
21 +++ gnutls/configure.in 2007-01-20 01:52:24.000000000 +0100
22 @@ -187,9 +187,6 @@
23         fi
24  fi
25  
26 -# Needs to be called outside of 'if' clause.
27 -AM_CONDITIONAL(HAVE_LD_OUTPUT_DEF, test "$output_def" = "yes")
28 -
29  AC_MSG_RESULT([***
30  *** Detecting C library capabilities...
31  ])
32 @@ -583,6 +572,11 @@
33  LIBGNUTLS_EXTRA_CFLAGS="$LIBOPENCDK_CFLAGS -I${includedir}"
34  AC_SUBST(LIBGNUTLS_EXTRA_LIBS)
35  AC_SUBST(LIBGNUTLS_EXTRA_CFLAGS)
36 +
37 +
38 +# Needs to be called outside of 'if' clause.
39 +AM_CONDITIONAL(HAVE_LD_OUTPUT_DEF, test "$output_def" = "yes" -a "${enable_shared}" != "no")
40 +
41  export ac_full
42  
43  CFLAGS="${CFLAGS} ${LIBGCRYPT_CFLAGS}"