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

posix/select: Add picolibc to cyclic dependency resolution

This commit is contained in:
Koen Zandberg 2020-07-07 11:26:08 +02:00 committed by Keith Packard
parent 531050ada2
commit 26c1920cf1

View File

@ -30,8 +30,9 @@
#define SYS_SELECT_H
#include <string.h>
/* prevent cyclic dependency with newlib's `sys/types.h` */
#if defined(MODULE_NEWLIB) && !defined(CPU_ESP32) && !defined(CPU_ESP8266)
/* prevent cyclic dependency with newlib/picolibc's `sys/types.h` */
#if (defined(MODULE_NEWLIB) || defined(MODULE_PICOLIBC)) && \
!defined(CPU_ESP32) && !defined(CPU_ESP8266)
#include <sys/_timeval.h>
#else
#include <sys/time.h>