newlib: Disable sys/types.h implementations of FD_SET, etc.

Temporary measure, until we have VFS-level select() support.

Closes https://github.com/espressif/esp-idf/issues/1141
This commit is contained in:
Angus Gratton 2017-10-20 18:11:32 +08:00 committed by Angus Gratton
parent e5ae0f5927
commit f76a3c45c0

View file

@ -221,6 +221,9 @@ typedef unsigned int mode_t _ST_INT32;
typedef unsigned short nlink_t; typedef unsigned short nlink_t;
/* FD_SET and friends are still LWIP only */
# if !defined(ESP_PLATFORM)
/* We don't define fd_set and friends if we are compiling POSIX /* We don't define fd_set and friends if we are compiling POSIX
source, or if we have included (or may include as indicated source, or if we have included (or may include as indicated
by __USE_W32_SOCKETS) the W32api winsock[2].h header which by __USE_W32_SOCKETS) the W32api winsock[2].h header which
@ -266,6 +269,7 @@ typedef struct _types_fd_set {
})) }))
# endif /* !(defined (_POSIX_SOURCE) || defined (_WINSOCK_H) || defined (_WINSOCKAPI_) || defined (__USE_W32_SOCKETS)) */ # endif /* !(defined (_POSIX_SOURCE) || defined (_WINSOCK_H) || defined (_WINSOCKAPI_) || defined (__USE_W32_SOCKETS)) */
#endif /* !defined(ESP_PLATFORM) */
#undef __MS_types__ #undef __MS_types__
#undef _ST_INT32 #undef _ST_INT32