summaryrefslogtreecommitdiff
path: root/components/net
diff options
context:
space:
mode:
authorMan, Jianting (Meco) <[email protected]>2022-03-29 01:39:55 -0400
committerGitHub <[email protected]>2022-03-29 13:39:55 +0800
commitbe892de35a5f9db4b4468a354aa6e43414e7e5f9 (patch)
tree6dc28c935ba1742e71369baee00625e749a24f61 /components/net
parentf587a55bc2006f4316383425d518b734e42bb4a2 (diff)
[posix] add RT_USING_POSIX_SOCKET (#5731)
Diffstat (limited to 'components/net')
-rw-r--r--components/net/sal/Kconfig19
1 files changed, 8 insertions, 11 deletions
diff --git a/components/net/sal/Kconfig b/components/net/sal/Kconfig
index 3836049333..8542f02a2e 100644
--- a/components/net/sal/Kconfig
+++ b/components/net/sal/Kconfig
@@ -35,19 +35,16 @@ if RT_USING_SAL
endif
config SAL_USING_POSIX
- bool "Enable BSD socket operated by file system API"
- default n
- select RT_USING_POSIX_FS
- select RT_USING_POSIX_SELECT
+ bool
+ depends on DFS_USING_POSIX
+ default y
help
+ Enable BSD socket operated by file system API
Let BSD socket operated by file system API, such as read/write and involveed in select/poll POSIX APIs.
- if !SAL_USING_POSIX
-
- config SAL_SOCKETS_NUM
- int "the maximum number of sockets"
- default 16
-
- endif
+ config SAL_SOCKETS_NUM
+ int "the maximum number of sockets"
+ depends on !SAL_USING_POSIX
+ default 16
endif