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:
parent
1582fdd571
commit
70f5747712
@ -30,6 +30,7 @@ extern "C" {
|
|||||||
#ifdef CPU_NATIVE
|
#ifdef CPU_NATIVE
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#if __GLIBC__
|
||||||
/*
|
/*
|
||||||
* Required to use some C++11 headers with g++ on the native board.
|
* 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 {
|
typedef struct {
|
||||||
__cpu_mask __bits[__CPU_SETSIZE / __NCPUBITS];
|
__cpu_mask __bits[__CPU_SETSIZE / __NCPUBITS];
|
||||||
} cpu_set_t;
|
} cpu_set_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief In all test the function has never been called, hence it is empty for now.
|
* @brief In all test the function has never been called, hence it is empty for now.
|
||||||
|
Loading…
Reference in New Issue
Block a user