aboutsummaryrefslogtreecommitdiff
path: root/src/util/dnsstub.c
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-09-10 16:59:32 +0000
committerng0 <ng0@n0.is>2019-09-10 16:59:32 +0000
commit04b6df21cd281e8cd540139f8d9ae85defc1961c (patch)
tree6357199445df8d5c0c631bc8f10aef838b1f9f1e /src/util/dnsstub.c
parent483b0139a218a5f8a8311bda3eb23bcd88f57688 (diff)
downloadgnunet-04b6df21cd281e8cd540139f8d9ae85defc1961c.tar.gz
gnunet-04b6df21cd281e8cd540139f8d9ae85defc1961c.zip
remove CYGWIN codeblocks, drop vendored Windows openvpn, drop win32 specific files.
configures and builds okay. testsuite wasn't checked, will be checked. diff including the plibc removal is now around 14370 lines of code less.
Diffstat (limited to 'src/util/dnsstub.c')
-rw-r--r--src/util/dnsstub.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/util/dnsstub.c b/src/util/dnsstub.c
index ab7a08318..fef4b5f5d 100644
--- a/src/util/dnsstub.c
+++ b/src/util/dnsstub.c
@@ -291,16 +291,12 @@ do_dns_read(struct GNUNET_DNSSTUB_RequestSocket *rs,
291 ssize_t r; 291 ssize_t r;
292 int len; 292 int len;
293 293
294#ifndef MINGW
295 if (0 != ioctl(GNUNET_NETWORK_get_fd(dnsout), FIONREAD, &len)) 294 if (0 != ioctl(GNUNET_NETWORK_get_fd(dnsout), FIONREAD, &len))
296 { 295 {
297 /* conservative choice: */ 296 /* conservative choice: */
298 len = UINT16_MAX; 297 len = UINT16_MAX;
299 } 298 }
300#else 299
301 /* port the code above? */
302 len = UINT16_MAX;
303#endif
304 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Receiving %d byte DNS reply\n", len); 300 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Receiving %d byte DNS reply\n", len);
305 { 301 {
306 unsigned char buf[len] GNUNET_ALIGN; 302 unsigned char buf[len] GNUNET_ALIGN;