fixed O_LARGEFILE not defined ci build error.
This commit is contained in:
parent
53afeda538
commit
a53367ac08
|
@ -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 inet_ioctlsocket(int socket, long cmd, void *arg)
|
||||||
{
|
{
|
||||||
int flags;
|
int flags;
|
||||||
|
|
||||||
switch (cmd)
|
switch (cmd)
|
||||||
{
|
{
|
||||||
case F_GETFL:
|
case F_GETFL:
|
||||||
case F_SETFL:
|
case F_SETFL:
|
||||||
flags = (int)(size_t)arg;
|
flags = (int)(size_t)arg;
|
||||||
|
#ifdef O_LARGEFILE
|
||||||
flags &= ~O_LARGEFILE;
|
flags &= ~O_LARGEFILE;
|
||||||
|
#endif
|
||||||
return lwip_fcntl(socket, cmd, flags);
|
return lwip_fcntl(socket, cmd, flags);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue