From 70f57477129425f6a5e8b98ac6441f1ad9cf0520 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Wed, 5 Jun 2024 21:57:43 +0200 Subject: [PATCH] core/native_shed: Fix compilation with musl On musl, `spu_set_t` is provided by system headers, so only provide that with glibc. --- core/include/native_sched.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/include/native_sched.h b/core/include/native_sched.h index 573b97095b..18c22191f5 100644 --- a/core/include/native_sched.h +++ b/core/include/native_sched.h @@ -30,6 +30,7 @@ extern "C" { #ifdef CPU_NATIVE #include +#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.