From 6e996f6a4da1c0616c16bb0d3b8e16119b9d5a7b Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Tue, 1 Feb 2022 21:20:32 +0100 Subject: [PATCH] sys/posix/select: remove conditional compilation for ESP32 --- sys/posix/include/sys/select.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/posix/include/sys/select.h b/sys/posix/include/sys/select.h index ec03e08197..8bf98f7c42 100644 --- a/sys/posix/include/sys/select.h +++ b/sys/posix/include/sys/select.h @@ -31,8 +31,7 @@ #include /* 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 #else #include @@ -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. *