mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
vfs: Warn aobut using deprecated select option
Add LWIP_USE_ONLY_LWIP_SELECT for compatibility, as the dependency may break backward compatibility if LWIP_USE_ONLY_LWIP_SELECT=y.
This commit is contained in:
parent
3389384613
commit
b597dbff7c
@ -81,6 +81,12 @@ menu "LWIP"
|
||||
the maximum amount of sockets here. The valid value is from 1
|
||||
to 16.
|
||||
|
||||
config LWIP_USE_ONLY_LWIP_SELECT
|
||||
bool "Support LWIP socket select() only (DEPRECATED)"
|
||||
default n
|
||||
help
|
||||
This option is deprecated. Do not use this option, use VFS_SUPPORT_SELECT instead.
|
||||
|
||||
config LWIP_SO_LINGER
|
||||
bool "Enable SO_LINGER processing"
|
||||
default n
|
||||
|
@ -21,6 +21,11 @@
|
||||
#include "esp_vfs_private.h"
|
||||
#include "sdkconfig.h"
|
||||
|
||||
// Warn about using deprecated option
|
||||
#ifdef CONFIG_LWIP_USE_ONLY_LWIP_SELECT
|
||||
#warning LWIP_USE_ONLY_LWIP_SELECT is deprecated: Please use VFS_SUPPORT_SELECT instead
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_VFS_SUPPRESS_SELECT_DEBUG_OUTPUT
|
||||
#define LOG_LOCAL_LEVEL ESP_LOG_NONE
|
||||
#endif //CONFIG_VFS_SUPPRESS_SELECT_DEBUG_OUTPUT
|
||||
|
Loading…
Reference in New Issue
Block a user