From efcbdd0282759bc0cb3be96c413c77cce89c8146 Mon Sep 17 00:00:00 2001 From: Florian Schmidt Date: Mon, 20 May 2019 13:29:47 +0200 Subject: [PATCH] Provide ioctl Signed-off-by: Florian Schmidt Reviewed-by: Felipe Huici --- exportsyms.uk | 1 + include/sys/socket.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/exportsyms.uk b/exportsyms.uk index 42e255f..b17b5e1 100644 --- a/exportsyms.uk +++ b/exportsyms.uk @@ -6,6 +6,7 @@ getsockname getsockopt liblwip_init listen +lwip_ioctl lwip_htonl lwip_htons lwip_select diff --git a/include/sys/socket.h b/include/sys/socket.h index 90f80ba..11f622d 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -48,6 +48,8 @@ #define SOCK_NONBLOCK 0x20000000 #endif +#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); -- 2.39.5