summaryrefslogtreecommitdiff
path: root/lib/system.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-12-21 11:27:39 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-12-21 11:27:39 +0100
commit28afc86b68c283f415cef7bb13f437cf4725a0bf (patch)
treec698d595868de389e66b70848bcde9b951e9c298 /lib/system.c
parent2ac9417383017e1c35fc16f64f16d22763e041af (diff)
downloadgnutls-28afc86b68c283f415cef7bb13f437cf4725a0bf.tar.gz
do not use the gnulib wrappers in win32
Diffstat (limited to 'lib/system.c')
-rw-r--r--lib/system.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/system.c b/lib/system.c
index a5a860f464..42ccd1f156 100644
--- a/lib/system.c
+++ b/lib/system.c
@@ -59,6 +59,12 @@ static HMODULE Crypt32_dll;
*/
#ifdef _WIN32
+/* Do not use the gnulib functions for sending and receiving data.
+ * Using them makes gnutls only working with gnulib applications.
+ */
+#undef send
+#undef recv
+
int system_errno(gnutls_transport_ptr p)
{
int tmperr = WSAGetLastError();