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

core/native_shed: Fix compilation with musl

On musl, `spu_set_t` is provided by system headers, so only provide
that with glibc.
This commit is contained in:
Marian Buschsieweke 2024-06-05 21:57:43 +02:00
parent 1582fdd571
commit 70f5747712
No known key found for this signature in database
GPG Key ID: 77AA882EC78084E6

View File

@ -30,6 +30,7 @@ extern "C" {
#ifdef CPU_NATIVE
#include <stdio.h>
#if __GLIBC__
/*
* Required to use some C++11 headers with g++ on the native board.
*/
@ -39,6 +40,7 @@ typedef unsigned long int __cpu_mask;
typedef struct {
__cpu_mask __bits[__CPU_SETSIZE / __NCPUBITS];
} cpu_set_t;
#endif
/**
* @brief In all test the function has never been called, hence it is empty for now.