]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
do not use the gnulib wrappers in win32
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 21 Dec 2013 10:27:39 +0000 (11:27 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 21 Dec 2013 10:27:39 +0000 (11:27 +0100)
lib/system.c

index a5a860f46400936580e41bb69406318ff0eaa0d6..42ccd1f1568972564589f9e6e4605b87e7a040cb 100644 (file)
@@ -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();