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:
dongheng
2019-06-17 20:32:22 +08:00
parent 9f9ee5a97b
commit bb38fa0ee1

View File

@ -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 */