diff options
Diffstat (limited to 'src/util/dnsstub.c')
-rw-r--r-- | src/util/dnsstub.c | 6 |
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; |