From: Simon Josefsson Date: Wed, 22 Oct 2008 16:42:41 +0000 (+0200) Subject: Make code compile with new gnulib. X-Git-Tag: gnutls_2_7_1~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8973cd66b52fda65b4c9ffadab3b9db59a464fb0;p=thirdparty%2Fgnutls.git Make code compile with new gnulib. --- diff --git a/lib/gnutls_buffers.c b/lib/gnutls_buffers.c index 2058a2765f..f4d5911d76 100644 --- a/lib/gnutls_buffers.c +++ b/lib/gnutls_buffers.c @@ -55,9 +55,10 @@ #include -#ifdef _WIN32 -# include -#endif +/* We need to disable gnulib's replacement wrappers to get native + Windows interfaces. */ +#undef recv +#undef send #ifndef EAGAIN # define EAGAIN EWOULDBLOCK diff --git a/libextra/gnutls_openssl.c b/libextra/gnutls_openssl.c index 797a4f51da..f64eef47d3 100644 --- a/libextra/gnutls_openssl.c +++ b/libextra/gnutls_openssl.c @@ -30,6 +30,10 @@ #include "../lib/random.h" #include "../lib/gnutls_hash_int.h" +/* Gnulib re-defines shutdown on mingw. We only use it as a variable + name, so restore the original name. */ +#undef shutdown + /* XXX: See lib/gnutls_int.h. */ #define GNUTLS_POINTER_TO_INT(_) ((int) GNUTLS_POINTER_TO_INT_CAST (_)) #define GNUTLS_INT_TO_POINTER(_) ((void*) GNUTLS_POINTER_TO_INT_CAST (_))