]> granicus.if.org Git - curl/commitdiff
windows: follow up to the buffer-tuning 1ba1dba7
authorDaniel Stenberg <daniel@haxx.se>
Wed, 8 Aug 2018 12:43:26 +0000 (14:43 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 8 Aug 2018 12:43:26 +0000 (14:43 +0200)
Somehow I didn't include the amended version of the previous fix. This
is the missing piece.

Pointed-out-by: Viktor Szakats
lib/transfer.c

index 1d33e861a882afc6f4f5c0fd2df2c25e581ba4ad..49f32568f297714726cd13111df4f194a6998ff3 100644 (file)
@@ -869,7 +869,11 @@ static CURLcode done_sending(struct connectdata *conn,
   return CURLE_OK;
 }
 
-#if defined(WIN32) && defined(SIO_IDEAL_SEND_BACKLOG_QUERY)
+#ifdef WIN32
+#ifndef SIO_IDEAL_SEND_BACKLOG_QUERY
+#define SIO_IDEAL_SEND_BACKLOG_QUERY 0x4004747B
+#endif
+
 static void win_update_buffer_size(curl_socket_t sockfd)
 {
   int result;