From: Florian Schmidt Date: Mon, 20 May 2019 11:29:45 +0000 (+0200) Subject: sys/socket.h: Include some libc header files first if available X-Git-Tag: RELEASE-0.4~71 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b509b03b2375cdf1b2c1f941109f60f7fefca554;p=unikraft%2Flibs%2Flwip.git 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 --- 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