mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-19 11:16:57 +00:00
lwip: Convert fcntl argument, add missing defs
This commit is contained in:
parent
94caac575b
commit
0296e6f66b
@ -27,7 +27,7 @@ SRC_C += etharp.c
|
|||||||
|
|
||||||
LIBS = thread cxx alarm signal libc timed_semaphore
|
LIBS = thread cxx alarm signal libc timed_semaphore
|
||||||
|
|
||||||
D_OPTS = ERRNO SO_REUSE
|
D_OPTS = ERRNO SO_REUSE LWIP_SO_RCVBUF RECV_BUFSIZE_DEFAULT=8192
|
||||||
D_OPTS := $(addprefix -D,$(D_OPTS))
|
D_OPTS := $(addprefix -D,$(D_OPTS))
|
||||||
CC_DEF += $(D_OPTS)
|
CC_DEF += $(D_OPTS)
|
||||||
|
|
||||||
|
@ -321,10 +321,10 @@ int Plugin::fcntl(Libc::File_descriptor *sockfdo, int cmd, long val)
|
|||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case F_GETFL:
|
case F_GETFL:
|
||||||
case F_SETFL:
|
case F_SETFL:
|
||||||
result = lwip_fcntl(s, cmd, val);
|
result = lwip_fcntl(s, cmd, (val & O_NONBLOCK) ? -1 : O_NONBLOCK);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
PERR("unsupported fcntl() request");
|
PERR("unsupported fcntl() request: %d", cmd);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user