From: Florian Schmidt Date: Mon, 20 May 2019 11:29:49 +0000 (+0200) Subject: Provide lwip socket function interfaces unconditionally X-Git-Tag: RELEASE-0.4~67 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b86404af600ec4f0b44116f84d7350f91f5a362b;p=unikraft%2Flibs%2Flwip.git Provide lwip socket function interfaces unconditionally Considering newlib, as compiled for unikraft, does not provide a socket API, these should always be provided, not only when nolibc is used. Signed-off-by: Florian Schmidt Reviewed-by: Felipe Huici --- diff --git a/include/sys/socket.h b/include/sys/socket.h index 11f622d..53d9301 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -50,7 +50,6 @@ #define ioctl(s, cmd, argp) lwip_ioctl(s, cmd, argp) -#ifdef CONFIG_LIBNOLIBC int socket(int domain, int type, int protocol); int accept(int s, struct sockaddr *addr, socklen_t *addrlen); int bind(int s, const struct sockaddr *name, socklen_t namelen); @@ -69,6 +68,5 @@ int send(int s, const void *dataptr, size_t size, int flags); int sendmsg(int s, const struct msghdr *message, int flags); int sendto(int s, const void *dataptr, size_t size, int flags, const struct sockaddr *to, socklen_t tolen); -#endif /* CONFIG_LIBNOLIBC */ #endif /* _UK_LWIP_SOCKET_H_ */