+2011-04-17 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ * wget.h [HAVE_LIBSSL32]: Define HAVE_SSL.
+
+ * gnutls.c (wgnutls_peek): Use correctly FIONBIO codes under Mingw32.
+ Reported by: Ray Satiro <raysatiro@yahoo.com>
+
2011-04-13 Giuseppe Scrivano <gscrivano@gnu.org>
* openssl.c (openssl_poll): Check if the specified timeout is zero after
return ret;
#else
/* XXX: Assume it was blocking before. */
- const int zero = 0;
- ret = ioctl (fd, FIONBIO, &zero);
+ const int one = 1;
+ ret = ioctl (fd, FIONBIO, &one);
if (ret < 0)
return ret;
#endif
if (ret < 0)
return ret;
#else
- const int one = 1;
- ret = ioctl (fd, FIONBIO, &one);
+ const int zero = 0;
+ ret = ioctl (fd, FIONBIO, &zero);
if (ret < 0)
return ret;
#endif
#endif
/* Is OpenSSL or GNUTLS available? */
-#if defined HAVE_LIBSSL || defined HAVE_LIBGNUTLS
+#if defined HAVE_LIBSSL || defined HAVE_LIBSSL32 || defined HAVE_LIBGNUTLS
# define HAVE_SSL
#endif