]> granicus.if.org Git - curl/commitdiff
Fix for compiling with lwIP (3)
authorGisle Vanem <gisle.vanem@gmail.com>
Tue, 23 Oct 2018 10:55:07 +0000 (12:55 +0200)
committerGitHub <noreply@github.com>
Tue, 23 Oct 2018 10:55:07 +0000 (12:55 +0200)
lwIP on Windows does not have a WSAIoctl() function.
But it do have a SO_SNDBUF option to lwip_setsockopt(). But it currently does nothing.

lib/transfer.c

index c7f4ef9f32de2bb4f0804374e4c019f23d4a1fad..b73f94d9e74c5b7a7b202df29c370de4fef52fb8 100644 (file)
@@ -879,7 +879,7 @@ static CURLcode done_sending(struct connectdata *conn,
   return CURLE_OK;
 }
 
-#ifdef WIN32
+#if defined(WIN32) && !defined(USE_LWIPSOCK)
 #ifndef SIO_IDEAL_SEND_BACKLOG_QUERY
 #define SIO_IDEAL_SEND_BACKLOG_QUERY 0x4004747B
 #endif