mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-28 13:40:37 +08:00
fix(lwip): fix "unistd.h" I/O APIs not declare when disable VFS
When enable VFS, apps code should include "unistd.h", "sys/ioctl.h" or "fcntl.h" if using "read", "write", "close", "ioctl" and "fcntl".
This commit is contained in:
@ -33,3 +33,9 @@
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#include "lwip/sockets.h"
|
||||
|
||||
#if !LWIP_POSIX_SOCKETS_IO_NAMES
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
#endif /* !LWIP_POSIX_SOCKETS_IO_NAMES */
|
||||
|
Reference in New Issue
Block a user