From 9d66e2299d2c3d78258a78cc3311cc66a39bf058 Mon Sep 17 00:00:00 2001 From: Tomas Hruby Date: Thu, 11 Oct 2012 10:23:44 +0000 Subject: [PATCH] LIBLWIP - fixed clang warnings --- lib/liblwip/include/arch/cc.h | 1 + lib/liblwip/include/lwip/mem.h | 1 + lib/liblwip/include/lwipopts.h | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/liblwip/include/arch/cc.h b/lib/liblwip/include/arch/cc.h index afad1469b..21599d7fd 100644 --- a/lib/liblwip/include/arch/cc.h +++ b/lib/liblwip/include/arch/cc.h @@ -4,6 +4,7 @@ #include #include #include +#include #include #include diff --git a/lib/liblwip/include/lwip/mem.h b/lib/liblwip/include/lwip/mem.h index e7d8b8baf..67cf00528 100644 --- a/lib/liblwip/include/lwip/mem.h +++ b/lib/liblwip/include/lwip/mem.h @@ -41,6 +41,7 @@ extern "C" { #if MEM_LIBC_MALLOC #include /* for size_t */ +#include typedef size_t mem_size_t; diff --git a/lib/liblwip/include/lwipopts.h b/lib/liblwip/include/lwipopts.h index 8717c8aae..d3d6ff0bb 100644 --- a/lib/liblwip/include/lwipopts.h +++ b/lib/liblwip/include/lwipopts.h @@ -68,7 +68,7 @@ #define CHECKSUM_CHECK_TCP 1 #define TCP_MSS (1460) -#define TCP_SND_BUF (256 * TCP_MSS) +#define TCP_SND_BUF (44 * TCP_MSS) #define TCP_SNDLOWAT (256) #define TCP_SND_QUEUELEN (512) #define TCP_WND ((1 << 16) - 1)