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

cpu/esp32: remove types.h in sys include

This commit is contained in:
Gunar Schorcht 2022-01-20 19:06:50 +01:00
parent c18f1c2a9b
commit 881a92fe47
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@
#include <string.h>
/* prevent cyclic dependency with newlib/picolibc's `sys/types.h` */
#if (defined(MODULE_NEWLIB) || defined(MODULE_PICOLIBC)) && \
!defined(CPU_ESP32) && !defined(CPU_ESP8266)
(!defined(CPU_ESP32) || (__GNUC__ >= 8)) && !defined(CPU_ESP8266)
#include <sys/_timeval.h>
#else
#include <sys/time.h>
@ -66,7 +66,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) && !defined(CPU_ESP8266)
#if (!defined(CPU_ESP32) || (__GNUC__ >= 8)) && !defined(CPU_ESP8266)
/**
* @brief Maximum number of file descriptors in an `fd_set` structure.
*