From a53367ac08e43520d67458a52956f191cc3f1194 Mon Sep 17 00:00:00 2001 From: geniusgogo Date: Sat, 25 Feb 2023 16:20:25 +0800 Subject: [PATCH] fixed O_LARGEFILE not defined ci build error. --- components/net/sal/impl/af_inet_lwip.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/net/sal/impl/af_inet_lwip.c b/components/net/sal/impl/af_inet_lwip.c index db1d3f78b3..52c1c2cb7d 100644 --- a/components/net/sal/impl/af_inet_lwip.c +++ b/components/net/sal/impl/af_inet_lwip.c @@ -226,12 +226,15 @@ static int inet_getsockname(int socket, struct sockaddr *name, socklen_t *namele int inet_ioctlsocket(int socket, long cmd, void *arg) { int flags; + switch (cmd) { case F_GETFL: case F_SETFL: flags = (int)(size_t)arg; +#ifdef O_LARGEFILE flags &= ~O_LARGEFILE; +#endif return lwip_fcntl(socket, cmd, flags); default: