提交 a53367ac 编写于 作者: xpxyr's avatar xpxyr 提交者: guo

fixed O_LARGEFILE not defined ci build error.

上级 53afeda5
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册