From b509b03b2375cdf1b2c1f941109f60f7fefca554 Mon Sep 17 00:00:00 2001 From: Florian Schmidt Date: Mon, 20 May 2019 13:29:45 +0200 Subject: [PATCH] sys/socket.h: Include some libc header files first if available In that case, lwip won't try to be helpful and provide conflicting fallback definitions (which lead to a lot of compiler warnings). Signed-off-by: Florian Schmidt Reviewed-by: Felipe Huici --- include/sys/socket.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/sys/socket.h b/include/sys/socket.h index 2a01877..90f80ba 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -34,6 +34,10 @@ #ifndef _UK_LWIP_SOCKET_H_ #include +#if CONFIG_HAVE_LIBC +#include +#include +#endif #include #ifndef SOCK_CLOEXEC -- 2.39.5