1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/posix/select: remove conditional compilation for ESP32

This commit is contained in:
Gunar Schorcht 2022-02-01 21:20:32 +01:00
parent 357eaa434a
commit 6e996f6a4d

View File

@ -31,8 +31,7 @@
#include <string.h>
/* prevent cyclic dependency with newlib/picolibc's `sys/types.h` */
#if (defined(MODULE_NEWLIB) || defined(MODULE_PICOLIBC)) && \
(!defined(CPU_ESP32) || (__GNUC__ >= 8)) && !defined(CPU_ESP8266)
#if (defined(MODULE_NEWLIB) || defined(MODULE_PICOLIBC)) && !defined(CPU_ESP8266)
#include <sys/_timeval.h>
#else
#include <sys/time.h>
@ -66,7 +65,7 @@ extern "C" {
#define POSIX_SELECT_THREAD_FLAG (1U << 3)
/* ESP's newlib has this already defined in `sys/types.h` */
#if (!defined(CPU_ESP32) || (__GNUC__ >= 8)) && !defined(CPU_ESP8266)
#if !defined(CPU_ESP8266)
/**
* @brief Maximum number of file descriptors in an `fd_set` structure.
*