This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 93bdecf net: always compile listen.c and accept.c when enable
CONFIG_NET
93bdecf is described below
commit 93bdecf2c3062da61286b4eaf60bdce45be62039
Author: Jiuzhu Dong <[email protected]>
AuthorDate: Sat Oct 9 12:13:25 2021 +0800
net: always compile listen.c and accept.c when enable CONFIG_NET
Signed-off-by: Jiuzhu Dong <[email protected]>
---
net/socket/Make.defs | 15 ++-------------
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/net/socket/Make.defs b/net/socket/Make.defs
index f71a42c..4134efa 100644
--- a/net/socket/Make.defs
+++ b/net/socket/Make.defs
@@ -20,24 +20,13 @@
# Include socket source files
-SOCK_CSRCS += bind.c connect.c getsockname.c getpeername.c
-SOCK_CSRCS += recv.c recvfrom.c send.c sendto.c
+SOCK_CSRCS += accept.c bind.c connect.c getsockname.c getpeername.c
+SOCK_CSRCS += listen.c recv.c recvfrom.c send.c sendto.c
SOCK_CSRCS += socket.c socketpair.c net_close.c
SOCK_CSRCS += recvmsg.c sendmsg.c
SOCK_CSRCS += net_dup2.c net_sockif.c net_poll.c net_vfcntl.c
SOCK_CSRCS += net_fstat.c
-# TCP/IP support
-
-ifeq ($(CONFIG_NET_TCP),y)
-SOCK_CSRCS += listen.c accept.c
-
-# Local Unix domain support
-
-else ifeq ($(CONFIG_NET_LOCAL_STREAM),y)
-SOCK_CSRCS += listen.c accept.c
-endif
-
# Socket options
ifeq ($(CONFIG_NET_SOCKOPTS),y)